/**
 * Nexus Sovereign Auth — Glassmorphic Design System
 * Aura Precision 3.0 Standard
 */
:root {
    --nexus-bg: #0a0a0c;
    --nexus-accent: #00f2ff;
    --nexus-glass: rgba(255, 255, 255, 0.03);
    --nexus-border: rgba(255, 255, 255, 0.08);
    --nexus-radius: 16px;
    --nexus-font: 'Inter', system-ui, -apple-system, sans-serif;
}

.nexus-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nexus-bg);
    color: #fff;
    font-family: var(--nexus-font);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Background Atmosphere */
.nexus-auth-wrap::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--nexus-accent) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.1;
    top: 10%;
    left: 10%;
    z-index: 0;
}

.nexus-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--nexus-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius);
    padding: 40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nexus-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.nexus-auth-header h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    background: linear-gradient(to bottom, #fff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nexus-auth-header p {
    color: #718096;
    font-size: 14px;
    margin-top: 8px;
}

.nexus-auth-field {
    margin-bottom: 20px;
}

.nexus-auth-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a0aec0;
    margin-bottom: 8px;
}

.nexus-auth-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--nexus-border);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.nexus-auth-input:focus {
    border-color: var(--nexus-accent);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.nexus-auth-btn {
    width: 100%;
    background: var(--nexus-accent);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nexus-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

.nexus-auth-btn:active {
    transform: translateY(0);
}

.nexus-auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.nexus-auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

.nexus-auth-footer a {
    color: var(--nexus-accent);
    text-decoration: none;
    font-weight: 600;
}

.nexus-auth-footer a:hover {
    text-decoration: underline;
}

/* Transitions */
.nexus-fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.nexus-fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* Magic Link OTP Boxes */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-field,
.sms-field {
    width: 45px;
    height: 55px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--nexus-border);
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--nexus-accent);
    outline: none;
    transition: all 0.3s ease;
}

.otp-field:focus,
.sms-field:focus {
    border-color: var(--nexus-accent);
    background: rgba(0, 242, 255, 0.05);
}

.nexus-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
}

.nexus-alert-error {
    background: rgba(255, 45, 85, 0.1);
    border: 1px solid rgba(255, 45, 85, 0.2);
    color: #ff2d55;
}

.nexus-alert-success {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--nexus-accent);
}
