/* =====================================================
   Strmiska AI – Auth Pages (Login, Register, Forgot)
   ====================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Animated background */
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, var(--accent-green-glow), transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(35, 134, 54, 0.1), transparent 40%);
    animation: authBgFloat 15s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes authBgFloat {
    0%   { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -20px) rotate(3deg); }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

.auth-card {
    background: rgba(28, 33, 40, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

/* Logo / Brand */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-brand-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

.auth-brand h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 0;
}

/* Password eye toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.15rem;
    padding: 4px;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--text-secondary);
}

/* Form footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-muted);
}

.auth-footer a {
    font-weight: 500;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 0.85rem;
}

/* reCAPTCHA centering */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Field error */
.field-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.field-error.visible {
    display: block;
    animation: slideIn var(--transition-fast) ease-out;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-default);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }
    
    .auth-brand h1 {
        font-size: 1.4rem;
    }
}
