/* ============================================================
   SYVRAZE — Auth Pages CSS (login, register)
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background: rgba(14, 14, 28, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-blue);
    margin: 0 auto 20px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}
.password-wrapper .form-input {
    padding-right: 50px;
}
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    transition: color var(--transition-fast);
    line-height: 1;
}
.password-toggle:hover { color: var(--accent-blue); }

/* Strength meter */
.password-strength {
    margin-top: 8px;
    display: flex;
    gap: 4px;
    align-items: center;
}
.strength-bar {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: background var(--transition-base);
}
.strength-bar.weak   { background: var(--accent-red); }
.strength-bar.medium { background: var(--accent-gold); }
.strength-bar.strong { background: var(--accent-green); }
.strength-label {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-left: 6px;
    min-width: 40px;
}

/* Auth checkbox */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.auth-checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all var(--transition-fast);
    position: relative;
}
.auth-checkbox input:checked {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}
.auth-checkbox input:checked::after {
    content: '';
    position: absolute;
    top: 2px; left: 5px;
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}
.auth-checkbox a { color: var(--accent-blue); text-decoration: none; }
.auth-checkbox a:hover { text-decoration: underline; }

.auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* Alerts */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-error   { background: rgba(255, 62, 107, 0.08);  border: 1px solid rgba(255, 62, 107, 0.25);  color: #ff6b8a; }
.alert-success { background: rgba(0, 255, 136, 0.07);   border: 1px solid rgba(0, 255, 136, 0.2);    color: var(--accent-green); }
.alert-info    { background: rgba(0, 212, 255, 0.07);   border: 1px solid rgba(0, 212, 255, 0.2);    color: var(--accent-blue); }

/* Field row */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; }
    .field-row { grid-template-columns: 1fr; }
}

/* Loading spinner */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
