.login-page {
    min-height: 100vh;
    background: #f4f6f9;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(340px, 42%) 1fr;
    min-height: 100vh;
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(40px, 7vw, 96px);
    color: #fff;
    background:
        radial-gradient(circle at 15% 15%, rgba(13, 110, 253, .6), transparent 35%),
        linear-gradient(145deg, #17243a 0%, #1d3150 58%, #223b60 100%);
}

.login-brand-panel::before,
.login-brand-panel::after {
    position: absolute;
    width: 340px;
    height: 340px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.login-brand-panel::before {
    right: -150px;
    top: -100px;
}

.login-brand-panel::after {
    right: -60px;
    bottom: -230px;
}

.login-brand-content,
.login-brand-footer {
    position: relative;
    z-index: 1;
}

.login-logo {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    background: #0d6efd;
    box-shadow: 0 12px 30px rgba(13, 110, 253, .35);
    font-size: 27px;
}

.login-eyebrow {
    margin: 28px 0 8px;
    color: #8fbaff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-brand-panel h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    letter-spacing: -.04em;
}

.login-brand-description {
    max-width: 480px;
    margin: 18px 0 34px;
    color: #c9d4e5;
    font-size: 18px;
    line-height: 1.65;
}

.login-feature {
    display: flex;
    max-width: 450px;
    align-items: center;
    gap: 13px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #dce5f2;
}

.login-feature i {
    color: #6ea8fe;
    font-size: 24px;
}

.login-brand-footer {
    position: absolute;
    bottom: 30px;
    color: #8e9db3;
    font-size: 12px;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.login-card {
    width: min(100%, 470px);
    padding: clamp(30px, 5vw, 48px);
    border: 1px solid #edf0f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(50, 60, 80, .1);
}

.login-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.login-heading h2 {
    margin: 0 0 4px;
    color: #263044;
    font-size: 27px;
    font-weight: 700;
}

.login-heading p {
    margin: 0;
    color: #7a869a;
    font-size: 14px;
}

.login-welcome-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #0d6efd;
    background: #e8f1ff;
    font-size: 22px;
}

.login-card .form-label {
    color: #445166;
    font-size: 13px;
    font-weight: 700;
}

.login-input-group .input-group-text,
.login-input-group .form-control,
.login-input-group .btn {
    min-height: 48px;
    border-color: #dfe4eb;
}

.login-input-group .input-group-text {
    padding-left: 15px;
    border-right: 0;
    color: #8490a3;
    background: #fff;
}

.login-input-group .form-control {
    border-left: 0;
    box-shadow: none;
}

.login-input-group .form-control:focus {
    border-color: #86b7fe;
}

.login-input-group:focus-within .input-group-text,
.login-input-group:focus-within .password-toggle {
    border-color: #86b7fe;
}

.password-toggle {
    border-left: 0;
    color: #6c788b;
    background: #fff;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #0d6efd;
    background: #fff;
}

.login-card .form-check-label,
.login-link {
    font-size: 13px;
}

.login-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.login-submit {
    display: flex;
    width: 100%;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 9px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(13, 110, 253, .22);
}

.login-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 24px 0 0;
    color: #8490a3;
    font-size: 12px;
    line-height: 1.5;
}

.login-mobile-brand {
    display: none;
}

@media (max-width: 850px) {
    .login-shell {
        display: block;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 24px 16px;
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 28px;
        color: #263044;
        font-size: 20px;
    }

    .login-mobile-brand .login-logo {
        width: 42px;
        height: 42px;
        border-radius: 11px;
        font-size: 19px;
    }
}

@media (max-width: 420px) {
    .login-card {
        padding: 28px 22px;
    }

    .login-heading {
        align-items: flex-start;
    }

    .login-welcome-icon {
        display: none;
    }
}
