html {
    min-height: 100%;
    background: #f0f6ff;
}

body.auth-modern {
    min-height: 100vh;
    color: #13213b;
    background: #f0f6ff;
}

.auth-modern > .container-fluid {
    display: flex;
    min-height: 100vh;
    padding: 0;
}

.auth-brand {
    position: sticky;
    top: 0;
    display: flex;
    flex: 0 0 34%;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    min-height: 660px;
    padding: 32px 36px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(155deg, #2449d8 0%, #2044aa 55%, #11798d 100%);
}

.auth-brand::before,
.auth-brand::after {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    content: "";
    pointer-events: none;
}

.auth-brand::before { top: -210px; right: -110px; }
.auth-brand::after { bottom: -220px; left: -120px; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand-logo { display: flex; align-items: center; gap: 14px; color: #fff; font-size: 23px; font-weight: 700; }
.auth-brand-logo:hover { color: #fff; }
.auth-brand-logo img { width: 66px; height: 66px; border-radius: 14px; object-fit: contain; }
.auth-brand-content { padding: 35px 0; }
.auth-brand-content h2 { max-width: 340px; margin: 0 0 18px; color: #fff; font-size: 29px; font-weight: 700; line-height: 1.25; }
.auth-brand-content p { max-width: 350px; margin: 0 0 30px; color: #d6e5ff; font-size: 15px; line-height: 1.8; }
.auth-features { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.auth-features li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.auth-features li span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .16); color: #e2f3ff; }
.auth-brand-footer { margin: 0; color: #c4d9f8; font-size: 12px; }

.auth-modern .auth-main {
    flex: 1;
    min-width: 0;
    margin: 0;
    background: linear-gradient(#f0f6ff 0%, #f0f6ff 76%, #fff 76%);
}

.auth-modern .right-col { width: 100%; min-height: 100vh; padding: 0 32px 40px; background: transparent; }
.auth-modern .auth-logo-links { position: static; flex-wrap: wrap; margin-top: 15px; }
.auth-modern .auth-logo-links .custom-logo-wrapper { display: none; }
.auth-modern .auth-logo-links > a { color: #2455c6; }
.auth-modern .auth-nav { position: relative; top: auto; right: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; min-height: 60px; margin: 0 15px 18px; }
.auth-modern .auth-nav a,
.auth-modern .auth-nav summary { color: #526581; font-size: 13px; }
.auth-modern .auth-nav > div { width: auto; height: auto; border: 0; }
.auth-modern .auth-nav > div > a { color: #2455dc; font-weight: 600; }
.auth-modern .auth-nav details { z-index: 20; }
.auth-modern .auth-nav ul { z-index: 20; }
.auth-modern .auth-nav a:hover { color: #1748d0; }
.auth-modern .auth-login-layout { display: flex; flex-direction: column; align-items: flex-end; margin: 0; }
.auth-modern .auth-demo-panel { width: 100%; padding: 0; }
.auth-modern .auth-demo-panel:empty { display: none; }
.auth-modern .auth-login-column { float: none; width: 100%; max-width: 400px; padding: 0; margin: 0 auto; }
.auth-modern .auth-card { padding: 36px; border: 1px solid #e0e6ef; border-radius: 22px; background: #fff; box-shadow: 0 12px 38px rgba(29, 54, 97, .08); }
.auth-modern .auth-card h1 { margin: 0 0 6px; color: #0e1c34; font-size: 24px; font-weight: 700; line-height: 1.3; }
.auth-modern .auth-card h2 { margin: 0; color: #647895; font-size: 14px; line-height: 1.6; }
.auth-card-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #214de1, #00b5cb); box-shadow: 0 6px 15px #2257d52b; font-size: 24px; }
.auth-modern #login-form { margin-top: 20px; }
.auth-modern #login-form .form-group { margin-bottom: 20px; }
.auth-modern #login-form .tw-dw-label { padding: 0 3px 9px; }
.auth-modern #login-form .tw-dw-label span { color: #23334d; font-size: 13px; font-weight: 600; }
.auth-modern #login-form input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; height: 46px; border: 1px solid #dce4ef; border-radius: 9px; background: #f9fafc; font-size: 14px; }
.auth-modern #login-form .show_hide_icon { top: auto !important; bottom: 11px; display: grid; place-items: center; width: 26px; height: 26px; }
.auth-modern #login-form .tw-dw-checkbox { width: 18px; height: 18px; border: 1px solid #cbd5e1; border-radius: 5px; }
.auth-modern #login-form > button[type="submit"] { margin-top: 10px; height: 47px; border-radius: 10px; background: #2459e9; box-shadow: 0 5px 12px #2459e933; }
.auth-modern #login-form > button[type="submit"]:hover { background: #1948ce; }
.auth-modern .auth-card a { color: #4265ee; background-image: none; }
.auth-modern .auth-register-link { width: 100%; margin-top: 14px; color: #647895; }
.auth-modern .auth-register-link span { display: block; margin-top: 5px; color: #4265ee; }
.auth-modern input:focus,
.auth-modern .form-control:focus { border-color: #4265ee !important; outline: 2px solid #4265ee24; outline-offset: 1px; box-shadow: none; }
.auth-modern a:focus-visible,
.auth-modern button:focus-visible,
.auth-modern summary:focus-visible { outline: 2px solid #4265ee; outline-offset: 3px; }
.auth-modern .auth-register-column { float: none; width: 100%; max-width: 700px; margin: 0 auto; padding: 0; }
.auth-modern .auth-register-card { padding: 32px 28px; }
.auth-modern .auth-register-card .text-center { margin-bottom: 18px; }

.auth-modern .wizard > .steps > ul { display: flex; gap: 10px; }
.auth-modern .wizard > .steps > ul > li { float: none; flex: 1; width: auto; min-width: 0; }
.auth-modern .wizard > .steps a,
.auth-modern .wizard > .steps a:hover,
.auth-modern .wizard > .steps a:active { display: flex; align-items: center; min-height: 64px; margin: 0; padding: 12px; border-radius: 11px; background: #edf0f4; color: #7b879b; font-size: 12px; font-weight: 600; }
.auth-modern .wizard > .steps .number { margin-right: 4px; font-size: 19px; }
.auth-modern .wizard > .steps .current a,
.auth-modern .wizard > .steps .current a:hover { background: #234de0; color: #fff; }
.auth-modern .wizard > .steps .done a { background: #e4ecff; color: #2455c6; }
.auth-modern .wizard > .steps .error a { background: #c43b3b; color: #fff; }
.auth-modern .wizard > .content { min-height: 0; margin: 25px 0 20px; overflow: visible; background: #fff; }
/* jQuery Steps positions panels absolutely; the active panel must determine page height. */
.auth-modern .wizard > .content > .body { position: relative; float: none; width: 100%; height: auto; padding: 0; }
.auth-modern .wizard > .content legend { margin-bottom: 20px; border: 0; color: #17233a; font-size: 20px; }
.auth-modern .wizard .form-group { margin-bottom: 18px; }
.auth-modern .wizard label { margin-bottom: 7px; color: #526581; font-size: 12px; }
.auth-modern .wizard .form-control { height: 44px; border: 1px solid #dce4ef; border-radius: 0 8px 8px 0; background: #f9fafc; color: #283954; font-size: 13px; }
.auth-modern .wizard .input-group-addon { border-color: #dce4ef; border-radius: 8px 0 0 8px; background: #fff; color: #64748b; }
.auth-modern .wizard .select2-container { width: 100% !important; min-width: 0; }
.auth-modern .wizard .select2-selection--single { height: 44px; border-color: #dce4ef; border-radius: 0 8px 8px 0; background: #f9fafc; }
.auth-modern .wizard .select2-selection__rendered { line-height: 42px; font-size: 13px; }
.auth-modern .wizard .select2-selection__arrow { height: 42px; }
.auth-modern .wizard .file-input .btn { min-height: 44px; padding-top: 11px; }
.auth-modern .wizard .file-caption { border-radius: 8px 0 0 8px; }
.auth-modern .wizard > .actions { padding: 0; }
.auth-modern .wizard > .actions a { border: 1px solid #d8e0ed; border-radius: 8px; background: #fff; color: #526581; }
.auth-modern .wizard > .actions a[href="#next"],
.auth-modern .wizard > .actions a[href="#finish"] { border-color: #2459e9; background: #2459e9; color: #fff; }
.auth-modern .wizard > .actions .disabled a { opacity: .45; }
.auth-modern .wizard label.error,
.auth-modern .has-error .help-block { color: #bd3030; }

@media (min-width: 1400px) {
    .auth-modern .auth-login-column { margin-right: 4%; }
}

@media (max-width: 1100px) {
    .auth-brand { flex-basis: 30%; padding: 26px 22px; }
    .auth-brand-content h2 { font-size: 25px; }
    .auth-features li { font-size: 12px; }
    .auth-modern .right-col { padding-right: 22px; padding-left: 22px; }
    .auth-modern .auth-register-card { padding: 28px 18px; }
}

@media (max-width: 767px) {
    .auth-modern > .container-fluid { display: block; }
    .auth-brand { position: relative; width: 100%; height: auto; min-height: 0; padding: 20px 24px; }
    .auth-brand-logo { font-size: 21px; }
    .auth-brand-logo img { width: 48px; height: 48px; }
    .auth-brand-content { padding: 20px 0 0; }
    .auth-brand-content h2 { max-width: none; margin-bottom: 10px; font-size: 23px; }
    .auth-brand-content p { max-width: none; margin-bottom: 0; font-size: 13px; }
    .auth-features, .auth-brand-footer { display: none; }
    .auth-modern .right-col { min-height: 0; padding: 0 16px 28px; }
    .auth-modern .auth-nav { gap: 12px; margin-bottom: 10px; }
    .auth-modern .auth-card { padding: 28px 22px; border-radius: 18px; }
    .auth-modern .auth-register-card { padding: 24px 14px; }
    .auth-modern .wizard > .steps > ul { gap: 6px; }
    .auth-modern .wizard > .steps a { flex-direction: column; align-items: flex-start; min-height: 76px; padding: 9px; font-size: 11px; }
    .auth-modern .wizard > .content > .body .col-md-6,
    .auth-modern .wizard > .content > .body .col-md-4,
    .auth-modern .wizard > .content > .body .col-md-12 { padding-right: 8px; padding-left: 8px; }
}
