:root {
    --navy-900: #061a40;
    --navy-800: #0a2353;
    --navy-950: #030f28;
    --brand-blue: #083884;
    --brand-blue-light: #1d63d8;
    --brand-red: #c81e1e;
    --brand-red-dark: #991111;
    --brand-gold: #f59e0b;
    --ink: #0f172a;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --bg: #f8fafc;
    --white: #FFFFFF;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #fbfcfe 0%, #eff6ff 100%) !important;
    background-attachment: fixed;
    color: var(--ink);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-wrapper-outer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    width: 100%;
}

.login-container-card {
    width: 100%;
    max-width: 1100px;
    background: transparent;
    border-radius: 36px;
    overflow: visible;
}

/* Flex Row */
.login-flex-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}

/* ============ LEFT BRANDING PANE (navy, mode landing) ============ */
.left-pane-branding {
    flex: 1.1;
    min-width: 400px;
    min-height: 520px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 34px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(160deg, #04163a 0%, #083884 55%, #0a2353 100%);
    box-shadow: 0 30px 60px -15px rgba(6, 26, 64, 0.45);
    border: 1px solid rgba(29, 99, 216, 0.25);
}

/* Curved waves (landing page style) */
.pane-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.pane-waves-svg {
    width: 100%;
    height: 100%;
    min-width: 520px;
}

/* Dot Pattern Decor */
.dot-pattern {
    position: absolute;
    top: 26px;
    right: 22px;
    width: 90px;
    height: 90px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 2px, transparent 2px);
    background-size: 9px 9px;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}

.brand-header {
    position: relative;
    z-index: 1;
}

.login-logo-img {
    height: 54px;
    width: auto;
    filter: drop-shadow(0 8px 18px rgba(3, 15, 40, 0.45));
}

.branding-content {
    position: relative;
    z-index: 1;
    margin: 18px 0;
}

.branding-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #ffffff;
}

.branding-title span {
    color: var(--brand-gold);
}

.branding-subtitle {
    font-size: 0.92rem;
    color: #c7d6f2;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 90%;
}

.branding-features-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.branding-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feat-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(29, 99, 216, 0.25);
    border: 1px solid rgba(125, 173, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -6px rgba(3, 15, 40, 0.6);
}

.feat-icon-circle svg {
    width: 20px;
    height: 20px;
}

.feat-text-wrapper {
    display: flex;
    flex-direction: column;
}

.feat-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #ffffff;
}

.feat-desc {
    font-size: 0.8rem;
    color: #b9cdf0;
    margin: 0;
}

.branding-illustration-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    align-self: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px -12px rgba(3, 15, 40, 0.6);
    border: 4px solid rgba(255, 255, 255, 0.9);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.illustration-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 60%);
}

.branding-illustration-img {
    width: 100%;
    aspect-ratio: 1200 / 896;
    height: auto;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

/* ============ RIGHT PANE / FORM ============ */
.right-pane-form {
    flex: 0.9;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-form-card {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: 28px;
    padding: 32px 28px;
    box-shadow: 0 25px 50px -12px rgba(6, 26, 64, 0.18);
    border: 1px solid var(--border-color);
}

.welcome-header {
    text-align: left;
    margin-bottom: 16px;
}

.welcome-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.welcome-subtitle {
    font-size: 0.88rem;
    color: var(--slate-500);
    margin-bottom: 0;
}

/* Form Styles */
.form-label-custom {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: block;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-box-right {
    position: absolute;
    right: 18px;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 5;
}

.input-icon-box-right svg {
    width: 18px;
    height: 18px;
}

.form-input-custom {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border-radius: 14px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    outline: none;
    color: var(--ink);
}

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

.form-input-custom:focus {
    border-color: var(--brand-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(8, 56, 132, 0.1);
}

.forgot-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.forgot-pass-link {
    font-size: 0.85rem;
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-pass-link:hover {
    color: var(--brand-blue-light);
}

.btn-login-new {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #083884 0%, #061a40 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px -6px rgba(8, 56, 132, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(8, 56, 132, 0.6);
}

.divider-or {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.divider-or::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.divider-or span {
    background: var(--white);
    padding: 0 15px;
    color: var(--slate-500);
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.social-login-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.btn-social-login {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    background: var(--white);
    color: var(--ink) !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-social-login:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.signup-prompt {
    font-size: 0.88rem;
    color: var(--slate-500);
    font-weight: 500;
}

.signup-prompt a {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
}

.signup-prompt a:hover {
    color: var(--brand-blue-light);
}

#infoMessage {
    margin-bottom: 20px;
}

.info-box {
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 0.88rem;
}

.bg-gradient-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1.5px solid rgba(5, 150, 105, 0.25) !important;
}

.bg-gradient-danger {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1.5px solid rgba(185, 28, 28, 0.25) !important;
}

/* Footer Security */
.login-footer-security {
    background: linear-gradient(135deg, #0a2353 0%, #061a40 100%);
    color: #cbd5e1 !important;
    width: 100%;
}

.login-footer-security .text-dark {
    color: #ffffff !important;
}

.login-footer-security .text-muted {
    color: #b9cdf0 !important;
}

.login-footer-security svg {
    color: #34d399 !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .login-wrapper-outer {
        padding: 18px 16px 26px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .left-pane-branding { display: none !important; }
    .login-container-card {
        max-width: 460px;
        width: 100%;
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .mobile-branding-header {
        margin-bottom: 6px !important;
    }
    .mobile-branding-header img {
        height: 88px !important;
    }
    .login-flex-row {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .right-pane-form { padding: 0 !important; width: 100%; }
    .login-form-card {
        border-radius: 26px !important;
        padding: 32px 24px !important;
        box-shadow: 0 20px 40px -12px rgba(6, 26, 64, 0.2) !important;
        border: 1px solid var(--border-color) !important;
    }
    .welcome-header {
        text-align: center !important;
        margin-bottom: 24px !important;
    }
    .form-input-custom {
        padding: 13px 48px 13px 16px !important;
        border-radius: 14px !important;
        border: 1.5px solid #cbd5e1 !important;
        background: #f8fafc !important;
        font-size: 0.92rem !important;
    }
    .form-input-custom:focus {
        border-color: var(--brand-blue) !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 4px rgba(8, 56, 132, 0.1) !important;
    }
    .btn-login-new {
        background: linear-gradient(135deg, #083884 0%, #061a40 100%) !important;
        border-radius: 14px !important;
    }
    .login-footer-security { background: #061a40 !important; }
}