/* ===================================
   AUTHENTICATION PAGE STYLES
   =================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.auth-container {
    position: relative;
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    max-width: 1240px;
    width: 100%;
    min-height: 640px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: var(--glass-blur);
    animation: fadeIn 600ms ease-out;
}

.auth-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(51, 212, 255, 0.2), transparent 44%),
        radial-gradient(circle at 82% 84%, rgba(37, 242, 181, 0.16), transparent 40%);
    pointer-events: none;
}

/* ===================================
   BRANDING SECTION
   =================================== */

.auth-branding {
    background: linear-gradient(160deg, #0a1831 0%, #0f2446 52%, #16365f 100%);
    padding: var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: conic-gradient(from 180deg at 50% 50%, rgba(51, 212, 255, 0.2), rgba(37, 242, 181, 0.12), rgba(27, 139, 255, 0.18), rgba(51, 212, 255, 0.2));
    filter: blur(40px);
    animation: rotateHalo 22s linear infinite;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: left;
    width: min(500px, 100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.logo-icon {
    font-size: 46px;
    filter: drop-shadow(0 8px 14px rgba(51, 212, 255, 0.45));
    animation: float 5s ease-in-out infinite;
}

.logo h1 {
    font-size: clamp(2.4rem, 3.2vw, 3.4rem);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.tagline {
    font-size: clamp(1.05rem, 1.1vw, 1.3rem);
    color: #d8e7fb;
    margin-bottom: var(--space-2xl);
    font-weight: var(--font-weight-medium);
    max-width: 40ch;
}

.features {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(216, 238, 255, 0.24);
    backdrop-filter: blur(8px);
    transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
    animation: riseIn 580ms ease both;
}

.feature:nth-child(1) {
    animation-delay: 80ms;
}

.feature:nth-child(2) {
    animation-delay: 150ms;
}

.feature:nth-child(3) {
    animation-delay: 220ms;
}

.feature:nth-child(4) {
    animation-delay: 290ms;
}

.feature:hover {
    transform: translateX(8px);
    border-color: rgba(79, 221, 255, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
}

.feature-icon {
    font-size: 1.45rem;
}

.feature span:last-child {
    font-size: 0.95rem;
    color: #d2e3f8;
    font-weight: 600;
}

/* ===================================
   FORMS SECTION
   =================================== */

.auth-forms {
    padding: clamp(1.4rem, 3vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.auth-form {
    width: 100%;
    max-width: 430px;
    animation: riseIn 520ms ease-out;
}

.auth-form h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-sm);
}

.auth-form form {
    margin-bottom: var(--space-xl);
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form input {
    border-radius: 14px;
    border: 1px solid rgba(189, 218, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
}

.auth-form input:focus {
    border-color: rgba(79, 221, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(51, 212, 255, 0.18);
    transform: translateY(-1px);
}

.form-footer {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(180, 215, 255, 0.16);
}

.form-footer p {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    margin: 0;
}

.form-footer a {
    color: var(--accent-primary);
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
}

.form-footer a:hover {
    color: var(--accent-tertiary);
}

/* ===================================
   PASSWORD STRENGTH INDICATOR
   =================================== */

.password-strength {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 7px;
    background: rgba(255, 255, 255, 0.11);
    border-radius: 99px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.strength-very-weak { background: #ef4444; }
.strength-weak { background: #f97316; }
.strength-fair { background: #fbbf24; }
.strength-good { background: #38bdf8; }
.strength-strong { background: #25f2b5; }

.strength-label {
    font-size: 11px;
    font-weight: 700;
    min-width: 76px;
    text-align: right;
    white-space: nowrap;
}

.label-very-weak { color: #ef4444; }
.label-weak { color: #f97316; }
.label-fair { color: #fbbf24; }
.label-good { color: #38bdf8; }
.label-strong { color: #25f2b5; }

.password-requirements {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(188, 218, 255, 0.16);
    border-radius: 12px;
    display: grid;
    gap: 6px;
}

.password-requirements li {
    font-size: 12px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.req-fail { color: rgba(230, 244, 255, 0.45); }
.req-met { color: #25f2b5; }

.field-error {
    display: none;
    font-size: 12px;
    color: #ff708f;
    margin-top: 4px;
    font-weight: 600;
}

/* ===================================
   GOOGLE OAUTH BUTTON
   =================================== */

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(188, 218, 255, 0.25);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.btn-google::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(66, 133, 244, 0.14) 0%, rgba(52, 168, 83, 0.14) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-google:hover::before { opacity: 1; }

.btn-google:hover {
    border-color: rgba(66, 133, 244, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(66, 133, 244, 0.2);
}

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

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

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    color: var(--text-tertiary);
}

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

.auth-divider span {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1060px) {
    .auth-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-branding {
        min-height: 320px;
    }

    .brand-content {
        text-align: center;
    }

    .logo {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .auth-page {
        padding: var(--space-md);
    }

    .auth-branding {
        display: none;
    }

    .auth-forms {
        padding: 26px 20px;
    }
}

@media (max-width: 480px) {
    .auth-forms {
        padding: 20px 16px;
    }

    .auth-form h2 {
        font-size: 1.55rem;
    }

    .btn,
    .btn-google {
        min-height: 46px;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes rotateHalo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
