/* ===== Login Page 2.0 ===== */

/* Hide default page elements on login */
.lg20-wrapper ~ .providerPreLinking { padding: 16px 0; }

/* Full-page wrapper */
.lg20-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.lg20-container {
    display: flex;
    max-width: 960px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
}

/* --- Left Brand Panel --- */
.lg20-brand-panel {
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #004fac 0%, #001f52 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.lg20-brand-pattern {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}
.lg20-brand-inner {
    position: relative;
    z-index: 1;
}
.lg20-brand-logo {
    margin-bottom: 36px;
}
.lg20-brand-logo img {
    max-height: 34px;
    width: auto;
}
.lg20-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}
.lg20-brand-heading {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.lg20-brand-sub {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
    margin: 0 0 36px;
}
.lg20-brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lg20-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 600;
}
.lg20-feature i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: rgba(255,255,255,.8);
    flex-shrink: 0;
}

/* --- Right Form Panel --- */
.lg20-form-panel {
    flex: 1;
    padding: 48px 44px;
    display: flex;
    align-items: center;
}
.lg20-form-inner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.lg20-form-header {
    margin-bottom: 32px;
}
.lg20-form-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f1d36;
    margin: 0 0 6px;
}
.lg20-form-header p {
    font-size: 14px;
    color: #8a94a6;
    margin: 0;
}

/* --- Form Fields --- */
.lg20-field {
    margin-bottom: 22px;
}
.lg20-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2e3442;
    margin-bottom: 8px;
}
.lg20-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.lg20-field-header label {
    margin: 0;
}
.lg20-forgot {
    font-size: 13px;
    font-weight: 600;
    color: #004fac;
    text-decoration: none;
    transition: color .2s ease;
}
.lg20-forgot:hover {
    color: #003380;
    text-decoration: none;
}
.lg20-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.lg20-input-icon {
    position: absolute;
    left: 16px;
    color: #b0b9c8;
    font-size: 14px;
    z-index: 1;
    pointer-events: none;
    transition: color .2s ease;
}
.lg20-input-wrap:focus-within .lg20-input-icon {
    color: #004fac;
}
.lg20-input-wrap .form-control {
    padding: 13px 16px 13px 46px !important;
    border: 1.5px solid #e0e5ec !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #2e3442 !important;
    background: #fff !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
    height: auto !important;
}
.lg20-input-wrap .form-control:focus {
    border-color: #004fac !important;
    box-shadow: 0 0 0 4px rgba(0,79,172,.08) !important;
    outline: none !important;
}
.lg20-input-wrap .form-control::placeholder {
    color: #c0c8d4;
    font-weight: 400;
}
.lg20-reveal-btn {
    position: absolute;
    right: 4px;
    background: none !important;
    border: none !important;
    color: #b0b9c8;
    padding: 10px 12px !important;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: all .15s ease;
    z-index: 1;
    box-shadow: none !important;
}
.lg20-reveal-btn:hover {
    color: #004fac;
    background: #f0f4fa !important;
}

/* --- Options Row --- */
.lg20-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.lg20-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #5a6d8a;
    cursor: pointer;
    margin: 0;
}
.lg20-checkbox input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #d0d7e2;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all .15s ease;
    position: relative;
    flex-shrink: 0;
}
.lg20-checkbox input:checked {
    background: #004fac;
    border-color: #004fac;
}
.lg20-checkbox input:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 9px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- Captcha --- */
.lg20-captcha {
    margin-bottom: 20px;
}

/* --- Submit Button --- */
.lg20-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #004fac, #0066d6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .25s ease;
    box-shadow: 0 4px 16px rgba(0,79,172,.2);
}
.lg20-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,79,172,.3);
}
.lg20-submit:active {
    transform: translateY(0);
}

/* --- Divider --- */
.lg20-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: #c0c8d4;
    font-size: 13px;
    font-weight: 500;
}
.lg20-divider::before,
.lg20-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #edf0f5;
}

/* --- Register Link --- */
.lg20-register {
    text-align: center;
}
.lg20-register p {
    font-size: 14px;
    color: #8a94a6;
    margin: 0 0 12px;
}
.lg20-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f5f6f8;
    color: #2e3442;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}
.lg20-register-btn:hover {
    background: #e8f0fe;
    color: #004fac;
    border-color: #d0ddef;
    text-decoration: none;
    transform: translateY(-1px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .lg20-container {
        flex-direction: column;
        border-radius: 16px;
    }
    .lg20-brand-panel {
        width: 100%;
        padding: 32px 28px;
    }
    .lg20-brand-heading { font-size: 24px; }
    .lg20-brand-sub { margin-bottom: 24px; }
    .lg20-brand-features { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .lg20-feature { font-size: 12px; gap: 8px; }
    .lg20-feature i { width: 32px; height: 32px; font-size: 13px; }
    .lg20-form-panel { padding: 32px 24px; }
    .lg20-form-header h2 { font-size: 22px; }
}
@media (max-width: 480px) {
    .lg20-wrapper { padding: 16px 8px; }
    .lg20-brand-features { display: none; }
    .lg20-brand-panel { padding: 28px 24px; text-align: center; }
    .lg20-brand-logo { margin-bottom: 20px; }
    .lg20-brand-heading { font-size: 22px; }
    .lg20-brand-sub { font-size: 14px; margin-bottom: 0; }
    .lg20-form-panel { padding: 28px 20px; }
}

/* --- Override old login-form styles --- */
.lg20-form.login-form .card,
.lg20-form.login-form .card-body,
.lg20-form.login-form .card-footer {
    all: unset !important;
    display: block !important;
}
.primary-content .lg20-form.login-form .card {
    max-width: none !important;
    box-shadow: none !important;
    border: none !important;
}
form.lg20-form.login-form .input-group.input-group-merge {
    display: contents;
}
