.boxed_wrapper:has(.auth-shell) {
    overflow: visible !important;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    min-width: 0;
    background: #ffffff;
}

.auth-shell__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 42%;
    min-width: 0;
    padding: 48px 40px;
    color: #ffffff;
    background:
        radial-gradient(ellipse 90% 55% at 12% -10%, rgba(241, 185, 14, 0.22), transparent 58%),
        radial-gradient(ellipse 70% 50% at 110% 110%, rgba(241, 185, 14, 0.14), transparent 55%),
        linear-gradient(165deg, #0a1b40 0%, #04102a 48%, #020814 100%);
}

.auth-shell__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 10%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 10%, transparent 72%);
}

.auth-shell__panel::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    width: 320px;
    height: 320px;
    right: -110px;
    top: 16%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 185, 14, 0.28) 0%, rgba(241, 185, 14, 0.06) 42%, transparent 70%);
    animation: auth-panel-glow 14s ease-in-out infinite;
}

.auth-shell__panel > * {
    position: relative;
    z-index: 1;
}

@keyframes auth-panel-glow {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translate3d(-28px, 18px, 0) scale(1.12);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-shell__panel::after {
        animation: none;
    }
}

.auth-shell__wordmark {
    display: inline-block;
    color: #f1b90e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-decoration: none;
}

.auth-shell__wordmark:hover,
.auth-shell__wordmark:focus {
    color: #f1b90e;
    text-decoration: none;
}

.auth-shell__headline {
    margin: 28px 0 0;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

.auth-shell__support {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.5;
}

.auth-shell__main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58%;
    min-width: 0;
    padding: 48px 32px;
    background: #ffffff;
}

.auth-shell__form {
    width: 100%;
    max-width: 420px;
}

.auth-shell__heading {
    margin: 0 0 24px;
    color: #04102a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-shell .form-label {
    color: #04102a;
    font-weight: 500;
}

.auth-shell .form-control {
    min-height: 44px;
    border-radius: 10px;
}

.auth-shell .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
}

.auth-shell .form-check-label {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding-left: 4px;
}

.auth-shell .password-toggle-btn {
    min-width: 44px;
    min-height: 44px;
}

.auth-shell__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: #f1b90e;
    color: #04102a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.auth-shell__submit:hover,
.auth-shell__submit:focus {
    background: #d4a20c;
    color: #04102a;
}

.auth-shell__footer {
    margin: 20px 0 0;
    color: #04102a;
    text-align: center;
}

.auth-shell__footer a {
    color: #04102a;
    font-weight: 600;
    text-decoration: underline;
}

.auth-shell__footer a:hover {
    color: #f1b90e;
}

@media (max-width: 991.98px) {
    .auth-shell {
        flex-direction: column;
    }

    .auth-shell__panel {
        width: 100%;
        min-height: 160px;
        padding: 24px 24px 20px;
        gap: 12px;
        justify-content: flex-start;
    }

    .auth-shell__panel::after {
        width: 180px;
        height: 180px;
        right: -36px;
        top: -48px;
    }

    .auth-shell__headline {
        margin-top: 8px;
        font-size: 22px;
    }

    .auth-shell__main {
        width: 100%;
        align-items: flex-start;
        padding: 32px 20px 48px;
    }
}
