.auth-body {
    --auth-navy: #15156b;
    --auth-navy-dark: #0c0c3a;
    --auth-navy-light: #26268c;
    --auth-gold: #f5a800;
    --auth-gold-light: #ffd66b;
    --auth-text: #16203a;
    --auth-muted: #64708a;
    --auth-line: #e5e8f0;
    --auth-bg: #f5f6fa;
    --auth-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: var(--auth-font);
    -webkit-font-smoothing: antialiased;
}

.auth-body input,
.auth-body button,
.auth-body select {
    font-family: var(--auth-font);
}

.auth-shell {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-height: 100vh;
}

.auth-brand-panel {
    position: relative;
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    padding: 56px 56px 32px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(155deg, #20209a 0%, var(--auth-navy) 45%, var(--auth-navy-dark) 100%);
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(245, 168, 0, .2) 0%, rgba(245, 168, 0, 0) 62%);
    pointer-events: none;
}

.auth-brand-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .07);
    pointer-events: none;
}

.auth-brand-ring.a {
    width: 430px;
    height: 430px;
    left: -170px;
    bottom: -130px;
}

.auth-brand-ring.b {
    width: 230px;
    height: 230px;
    left: 50px;
    bottom: -30px;
    border-color: rgba(255, 214, 107, .14);
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 460px;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 13px 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

.auth-brand-logo img {
    display: block;
    height: 40px;
    width: auto;
}

.auth-brand-title {
    margin: 34px 0 6px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.5px;
    color: #fff;
}

.auth-brand-sub {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    color: var(--auth-gold-light);
}

.auth-brand-desc {
    margin: 0 0 30px;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .68);
}

.auth-brand-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, .85);
}

.auth-brand-list li i {
    font-size: 19px;
    color: var(--auth-gold);
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    margin: 44px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .58);
}

.auth-panel {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--auth-bg);
}

.auth-panel-inner {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-mobile-logo {
    display: none;
    margin-bottom: 28px;
    text-align: center;
}

.auth-mobile-logo img {
    height: 36px;
    width: auto;
}

.auth-card {
    width: 100%;
    position: relative;
    padding: 38px 36px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 18px;
    box-shadow: 0 18px 44px -18px rgba(21, 21, 107, .16);
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--auth-gold), var(--auth-gold-light));
}

.auth-card-head {
    margin-bottom: 24px;
    text-align: center;
}

.auth-card-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: var(--auth-text);
}

.auth-card-sub {
    margin: 0;
    font-size: 14.5px;
    color: var(--auth-muted);
}

.auth-mobile-footer {
    display: none;
    margin: 24px 0 0;
    font-size: 12.5px;
    color: var(--auth-muted);
}

.auth-body .auth-card .form-label {
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-text);
}

.auth-body .auth-card .form-control,
.auth-body .auth-card .form-select {
    height: 48px;
    font-size: 15px;
    color: var(--auth-text);
    background-color: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-body .auth-card .form-control::placeholder {
    color: #7c869c;
}

.auth-body .auth-card .form-control:focus,
.auth-body .auth-card .form-select:focus {
    border-color: var(--auth-navy-light);
    box-shadow: 0 0 0 3px rgba(38, 38, 140, .12);
}

.auth-segment {
    display: flex;
    width: 100%;
    padding: 4px;
    background: #eceef5;
    border-radius: 12px;
}

.auth-body .auth-segment .btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.auth-body .auth-segment .btn:hover {
    color: var(--auth-text);
    background: rgba(255, 255, 255, .55);
}

.auth-body .auth-segment .btn:active,
.auth-body .auth-segment .btn.not-allowed,
.auth-body .auth-segment .btn.dropdown-toggle.show {
    color: var(--auth-muted);
    background: transparent;
}

.auth-body .auth-segment .btn-check:checked + .btn {
    background: #fff;
    color: var(--auth-navy);
    border: 0;
    box-shadow: 0 2px 6px rgba(21, 21, 107, .16);
}

.auth-body .auth-segment .btn-check:checked + .btn:hover {
    color: var(--auth-navy);
    background: #fff;
}

.auth-body .auth-segment .btn-check:focus + .btn {
    background: rgba(255, 255, 255, .7);
    color: var(--auth-navy);
    box-shadow: none;
}

.auth-body .auth-segment .btn-check:focus-visible + .btn {
    box-shadow: 0 0 0 3px rgba(38, 38, 140, .3);
}

.auth-body .auth-field .input-group {
    height: 48px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-body .auth-field .input-group:focus-within {
    border-color: var(--auth-navy-light);
    box-shadow: 0 0 0 3px rgba(38, 38, 140, .12);
}

.auth-body .auth-field .input-group .input-group-text {
    padding: 0 10px 0 14px;
    background: transparent;
    border: 0;
    color: var(--auth-muted);
    font-size: 20px;
}

.auth-body .auth-field .input-group .form-control {
    height: 100%;
    min-width: 0;
    padding: 0 6px 0 0;
    font-size: 15px;
    color: var(--auth-text);
    background: transparent;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    transition: none;
}

.auth-body .auth-field .input-group .form-control:focus {
    border: 0;
    box-shadow: none;
}

.auth-body .auth-field .input-group .form-control:focus::placeholder {
    color: #7c869c;
}

.auth-body .auth-pass-inputgroup .btn {
    padding: 0 14px;
    background: transparent;
    border: 0;
    color: var(--auth-muted);
    box-shadow: none;
    transition: color .18s ease;
}

.auth-body .auth-pass-inputgroup .btn:hover,
.auth-body .auth-pass-inputgroup .btn:focus {
    background: transparent;
    border: 0;
    color: var(--auth-navy);
    box-shadow: none;
}

.auth-body .auth-submit {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background-color: #15156b !important;
    background-image: none !important;
    --bs-btn-bg: #15156b;
    --bs-btn-hover-bg: #0c0c3a;
    --bs-btn-active-bg: #0c0c3a;
    --bs-btn-border-color: #15156b;
    background: var(--auth-navy) !important;
    border: 1px solid var(--auth-navy) !important;
    border-radius: 10px;
    box-shadow: 0 10px 20px -10px rgba(21, 21, 107, .55);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.auth-body .auth-submit:hover,
.auth-body .auth-submit:focus {
    color: #fff;
    background: var(--auth-navy-dark) !important;
    border-color: var(--auth-navy-dark) !important;
}

.auth-body .auth-submit:focus-visible {
    outline: 2px solid var(--auth-navy-light);
    outline-offset: 2px;
}

.auth-body .auth-submit:active,
.auth-body .auth-submit:not(:disabled):not(.disabled):active {
    color: #fff;
    background: var(--auth-navy-dark) !important;
    border-color: var(--auth-navy-dark) !important;
}

.auth-body .auth-card .btn-primary {
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background-color: #15156b !important;
    background-image: none !important;
    --bs-btn-bg: #15156b;
    --bs-btn-hover-bg: #0c0c3a;
    --bs-btn-active-bg: #0c0c3a;
    --bs-btn-border-color: #15156b;
    background: var(--auth-navy) !important;
    border: 1px solid var(--auth-navy) !important;
    border-radius: 10px;
    box-shadow: 0 10px 20px -10px rgba(21, 21, 107, .55);
    transition: background-color .18s ease, border-color .18s ease;
}

.auth-body .auth-card .btn-primary:hover,
.auth-body .auth-card .btn-primary:focus,
.auth-body .auth-card .btn-primary:active {
    color: #fff;
    background: var(--auth-navy-dark) !important;
    border-color: var(--auth-navy-dark) !important;
    box-shadow: none !important;
}

.auth-body .auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    font-size: 14px;
    color: #b02a37;
    background: #fdf0f2;
    border: 1px solid #f6c9d0;
    border-radius: 10px;
}

.auth-body .auth-alert i {
    margin-top: 1px;
    font-size: 18px;
}

.auth-body .auth-card .invalid-feedback {
    font-size: 13px;
}

.auth-body .auth-card .text-muted {
    font-size: 14px;
    color: var(--auth-muted);
    transition: color .18s ease;
}

.auth-body .auth-card .text-muted:hover {
    color: var(--auth-navy);
}

.auth-body a:focus-visible,
.auth-body button:focus-visible {
    outline: 2px solid var(--auth-navy-light);
    outline-offset: 2px;
}

.auth-body .btn:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .auth-body .auth-brand-panel {
        display: none;
    }

    .auth-body .auth-panel {
        padding: 24px 16px;
    }

    .auth-body .auth-mobile-logo {
        display: block;
    }

    .auth-body .auth-mobile-footer {
        display: block;
    }

    .auth-body .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
        box-shadow: 0 12px 28px -14px rgba(21, 21, 107, .14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-body * {
        transition: none !important;
        animation: none !important;
    }
}
