html, body.login-page-body {
    min-height: 100vh;
    min-height: 100dvh;
}

.login-page-body {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.45) 0%, rgba(241, 245, 249, 0.35) 100%),
                url('../images/login-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* Background ambient glow */
.login-page-body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 144, 231, 0.14) 0%, rgba(99, 102, 241, 0.05) 60%, transparent 80%);
    border-radius: 50%;
    top: 5%;
    left: 8%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}

.login-page-body::after {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(14, 165, 233, 0.05) 60%, transparent 80%);
    border-radius: 50%;
    bottom: 5%;
    right: 8%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}

/* Unified 2-Column Card Container */
.unified-auth-container {
    width: 100%;
    max-width: 920px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.unified-auth-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.22), 
                0 0 0 1px rgba(255, 255, 255, 0.9), 
                0 10px 25px -5px rgba(0, 0, 0, 0.06);
    min-height: 560px;
}

/* Left: Feature Showcase Column — soft green (up) / red (down) market tint */
.auth-feature-panel {
    flex: 1;
    background: linear-gradient(155deg, #0a1612 0%, #0f172a 42%, #1a1216 100%);
    padding: 2.75rem 2.25rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* Ambient inner glow for feature panel */
.auth-feature-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.22) 0%, transparent 70%);
    top: -70px;
    right: -50px;
    border-radius: 50%;
    pointer-events: none;
}

.auth-feature-panel::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, transparent 70%);
    bottom: -40px;
    left: -40px;
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 144, 231, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 50px;
    font-size: 0.765rem;
    font-weight: 700;
    color: #38bdf8;
    width: fit-content;
    letter-spacing: 0.2px;
}

.auth-feature-title {
    font-size: 1.75rem;
    font-weight: 850;
    line-height: 1.25;
    margin: 1rem 0 0.5rem;
    color: #ffffff;
    letter-spacing: -0.4px;
}

.auth-gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #67e8f9 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.auth-feature-desc {
    font-size: 0.835rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1.35rem;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    transition: all 0.2s ease;
}

.auth-feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(4px);
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 144, 231, 0.2) 0%, rgba(56, 189, 248, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.925rem;
    flex-shrink: 0;
}

.auth-feature-text h5 {
    font-size: 0.865rem;
    font-weight: 750;
    color: #ffffff;
    margin: 0 0 2px 0;
    letter-spacing: -0.15px;
}

.auth-feature-text p {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.35;
    margin: 0;
}

.auth-feature-footer {
    display: flex;
    gap: 0.75rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.15rem;
}

.auth-stat-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.735rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-stat-tag strong {
    color: #38bdf8;
    font-size: 0.825rem;
}

/* Right: Login Form Column */
.auth-form-panel {
    flex: 1.15;
    background: #ffffff;
    padding: 3rem 2.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Single Standalone Card (Used for Register page) */
.login-card-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.register-card-container {
    max-width: 580px;
    margin: auto;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.35rem 2.5rem;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.9), 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.login-brand-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-brand-title {
    font-size: 2.15rem;
    font-weight: 850;
    color: #0f172a;
    margin: 0 0 0.35rem;
    letter-spacing: -0.6px;
    line-height: 1.15;
}

.login-brand-title .brand-gradient-text {
    background: linear-gradient(135deg, #0090e7 0%, #06b6d4 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.login-brand-header p {
    font-size: 0.885rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.login-form-group {
    margin-bottom: 1rem;
}

.login-form-group label {
    display: block;
    font-size: 0.815rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrap .input-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.login-input-wrap .form-control {
    width: 100%;
    height: 46px;
    padding: 0.55rem 1rem 0.55rem 2.75rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.885rem;
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.login-input-wrap .form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 0.65 !important;
    font-weight: 400 !important;
}

.login-input-wrap .form-control:focus {
    background: #ffffff;
    border-color: #0090e7;
    box-shadow: 0 0 0 3.5px rgba(0, 144, 231, 0.15);
    outline: none;
}

.login-input-wrap .form-control:focus ~ .input-icon {
    color: #0090e7;
}

.password-toggle-btn {
    position: absolute;
    right: 0.85rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #0090e7;
}

.captcha-img {
    height: 46px;
    min-width: 110px;
    object-fit: cover;
}

.captcha-refresh-btn {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    color: #64748b;
    transition: all 0.2s ease;
}

.captcha-refresh-btn:hover {
    background-color: #f0f7ff;
    border-color: #0090e7;
    color: #0090e7;
}

.btn-login-submit {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0090e7 0%, #0077c2 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 144, 231, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #0077c2 0%, #005fa3 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(0, 144, 231, 0.45);
    color: #ffffff;
}

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

.login-footer-info {
    text-align: center;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.775rem;
}

.login-footer-info a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
}

.login-footer-info a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.login-back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    margin-top: 0.65rem;
    transition: all 0.2s ease;
}

.login-back-home-link:hover {
    color: #0090e7;
    transform: translateX(-2px);
}

.field-validation-error {
    font-size: 0.775rem;
    color: #ef4444;
    font-weight: 500;
    margin-top: 0.35rem;
    display: block;
}

/* ==========================================
   Responsive Viewport Adjustments
   ========================================== */
@media (max-width: 960px) {
    .unified-auth-container {
        max-width: 840px;
    }

    .auth-feature-panel {
        padding: 2.25rem 1.75rem;
    }

    .auth-form-panel {
        padding: 2.5rem 2rem;
    }

    .auth-feature-title {
        font-size: 1.55rem;
    }
}

@media (max-width: 820px) {
    .login-page-body {
        background: #f1f5f9 !important;
        background-image: none !important;
        padding: 1.5rem 1rem;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .login-page-body::before,
    .login-page-body::after {
        display: none !important;
    }

    .unified-auth-container {
        max-width: 440px;
        width: 100%;
        margin: auto;
    }

    .unified-auth-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 20px;
        box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.10), 0 0 0 1px #e2e8f0;
        width: 100%;
        background: #ffffff;
    }

    .auth-feature-panel {
        display: none !important;
    }

    .auth-form-panel {
        padding: 2.25rem 1.75rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .login-page-body {
        background: #f1f5f9 !important;
        background-image: none !important;
        padding: 1.25rem 0.85rem;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .unified-auth-container,
    .login-card-container,
    .register-card-container {
        max-width: 100%;
        width: 100%;
        margin: auto;
    }

    .unified-auth-card,
    .login-card {
        border-radius: 18px;
        width: 100%;
        box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px #e2e8f0;
    }

    .auth-form-panel {
        padding: 2rem 1.35rem;
        width: 100%;
    }

    .login-brand-header {
        margin-bottom: 1.35rem;
    }

    .login-brand-title,
    .login-brand-header h2 {
        font-size: 1.75rem;
        letter-spacing: -0.5px;
    }

    .login-brand-header p {
        font-size: 0.825rem;
    }

    .login-input-wrap .form-control {
        height: 46px;
        font-size: 0.875rem;
        border-radius: 10px;
    }

    .captcha-img {
        height: 44px;
    }

    .captcha-refresh-btn {
        width: 44px;
        height: 44px;
    }

    .btn-login-submit {
        height: 46px;
        font-size: 0.925rem;
        border-radius: 10px;
    }

    .login-footer-info {
        font-size: 0.75rem;
    }
}

@media (max-width: 380px) {
    .auth-form-panel,
    .login-card {
        padding: 1.65rem 1rem;
    }

    .login-brand-title {
        font-size: 1.55rem;
    }
}
