/* Auth Page Isolation — v3.0 Modern Redesign */
:root {
    --auth-primary: #0f4c75;
    --auth-dark: #1b262c;
    --auth-light: #3282b8;
    --auth-accent: #bbe1fa;
    --auth-bg: #f3f6f9;
}

body.auth-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: url('/images/bg-v3.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Subtle gradient overlay on background */
body.auth-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.15) 0%, rgba(27, 38, 44, 0.25) 100%);
    z-index: 0;
    pointer-events: none;
}

/* ── Top Navigation Bar ── */
.auth-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2.5rem;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
}

.auth-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.auth-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-nav-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.auth-nav-links a:hover {
    color: var(--auth-primary);
    background: rgba(15, 76, 117, 0.06);
}

.auth-nav-links .nav-cta {
    background: var(--auth-primary);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    margin-left: 0.25rem;
}

.auth-nav-links .nav-cta:hover {
    background: var(--auth-dark);
    color: white;
}

/* ── Auth Card ── */
.auth-wrapper {
    display: flex;
    width: 520px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    margin: 2.5rem 0;
    height: auto;
    max-height: none;
    position: relative;
    z-index: 1;
}

.auth-form-side {
    flex: 1;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-top: 0.25rem;
}

.auth-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--auth-dark);
    margin-top: 0;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 5;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* ── Form Elements ── */
.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--auth-dark);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.08);
    background: white;
}

.form-input::placeholder {
    color: #94a3b8;
}

/* ── Password Field with Eye Toggle ── */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-input {
    padding-right: 2.8rem;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--auth-primary);
    background: rgba(15, 76, 117, 0.05);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* ── Submit Button ── */
.btn-auth {
    width: 100%;
    padding: 0.85rem;
    background: var(--auth-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

.btn-auth:hover {
    background: var(--auth-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27, 38, 44, 0.3);
}

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

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

/* ── Auth Footer ── */
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: #64748b;
}

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

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

/* ── Trust Indicators ── */
.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.trust-item svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* ── Login Tabs ── */
.login-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.25rem;
    position: relative;
}

.login-tab {
    flex: 1;
    padding: 0.65rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.login-tab.active {
    color: #fff;
    background: var(--auth-primary);
    box-shadow: 0 2px 8px rgba(15, 76, 117, 0.3);
}

.login-tab:not(.active):hover {
    color: #334155;
    background: #e2e8f0;
}

.login-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .auth-nav {
        padding: 0.6rem 1rem;
    }

    .auth-nav-logo img {
        height: 32px;
    }

    .auth-nav-logo span {
        font-size: 1rem;
    }

    .auth-nav-links a {
        font-size: 0.78rem;
        padding: 0.4rem 0.5rem;
    }

    .auth-nav-links .nav-cta {
        padding: 0.4rem 0.8rem;
    }

    .auth-wrapper {
        width: calc(100% - 2rem);
        max-width: 440px;
        margin: 1.5rem 1rem;
    }

    .auth-form-side {
        padding: 2rem 1.5rem;
    }

    .auth-logo {
        height: 110px;
    }

    .auth-title {
        font-size: 1.4rem;
    }

    .auth-trust {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .auth-nav-links a:not(.nav-cta) {
        display: none;
    }

    .auth-nav-links .nav-cta {
        font-size: 0.8rem;
    }

    .auth-wrapper {
        border-radius: 16px;
    }

    .auth-form-side {
        padding: 1.5rem 1.25rem;
    }
}