.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-box {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.3);
    animation: authBoxIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes authBoxIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.auth-header .logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--accent-glow);
}

.auth-header .icon-inner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    border-top-color: transparent;
    border-left-color: transparent;
    transform: rotate(-45deg);
}

.auth-header h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* =============================================
   FORM
   ============================================= */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

.form-group input:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.form-group input:focus {
    border-color: var(--accent-primary);
    background: rgba(91, 94, 244, 0.06);
    box-shadow: 0 0 0 3px rgba(91, 94, 244, 0.15);
}

.form-group input::placeholder { color: var(--text-tertiary); }

.form-group input:invalid:not(:placeholder-shown) {
    border-color: rgba(240, 82, 82, 0.5);
}

/* =============================================
   ERROR
   ============================================= */
.error-message {
    display: none;
    padding: 0.875rem 1rem;
    background: rgba(240, 82, 82, 0.08);
    border: 1px solid rgba(240, 82, 82, 0.25);
    border-radius: 10px;
    color: #ff7a7a;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    white-space: pre-line;
    animation: errorShake 0.3s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* =============================================
   SUBMIT BUTTON
   ============================================= */
.btn-submit {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s;
}

.btn-submit:hover:not(:disabled) {
    background: #6b6ef8;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-submit:hover::before { background: rgba(255, 255, 255, 0.05); }
.btn-submit:active:not(:disabled) { transform: translateY(0); }

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =============================================
   FOOTER
   ============================================= */
.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

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

.auth-footer a:hover { color: #a5a8ff; }

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-links a:hover { color: var(--text-primary); }
.footer-links span { color: var(--text-tertiary); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
    .auth-box {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    .auth-header h1 { font-size: 1.5rem; }
}
