.auth-page {
    align-items: center;
    background:
        radial-gradient(circle at 14% 16%, rgba(57, 181, 74, 0.16), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(15, 23, 42, 0.08), transparent 26%),
        linear-gradient(135deg, #f7faf8 0%, #eef7f0 46%, #f8fafc 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 28px;
    position: relative;
}

.auth-page::before,
.auth-page::after {
    content: "";
    border: 1px solid rgba(57, 181, 74, 0.16);
    border-radius: 26px;
    height: 180px;
    position: fixed;
    transform: rotate(18deg);
    width: 180px;
    z-index: 0;
}

.auth-page::before {
    left: -72px;
    top: 74px;
}

.auth-page::after {
    bottom: -86px;
    right: 8%;
}

.auth-shell {
    position: relative;
    width: min(100%, 1040px);
    z-index: 1;
}

.bm-login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(215, 221, 230, 0.85);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
    min-height: 650px;
    overflow: hidden;
    padding: 0;
}

.bm-login-brand-panel {
    background:
        linear-gradient(145deg, rgba(14, 23, 20, 0.94), rgba(22, 36, 28, 0.96)),
        linear-gradient(135deg, rgba(57, 181, 74, 0.14), transparent);
    color: #fff;
    display: flex;
    min-height: 100%;
    overflow: hidden;
    padding: 54px;
    position: relative;
}

.bm-login-brand-panel::before {
    content: "";
    background: linear-gradient(135deg, rgba(57, 181, 74, 0.22), rgba(255, 255, 255, 0.04));
    border-radius: 40px;
    height: 280px;
    position: absolute;
    right: -118px;
    top: -96px;
    transform: rotate(18deg);
    width: 280px;
}

.bm-login-brand-panel::after {
    content: "";
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(57, 181, 74, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    bottom: 38px;
    height: 150px;
    left: -52px;
    position: absolute;
    transform: rotate(-14deg);
    width: 220px;
}

.bm-shape {
    border: 1px solid rgba(156, 255, 115, 0.22);
    position: absolute;
}

.bm-shape-one {
    border-radius: 999px;
    height: 118px;
    right: 92px;
    top: 150px;
    width: 118px;
}

.bm-shape-two {
    border-radius: 24px;
    bottom: 126px;
    height: 84px;
    right: 72px;
    transform: rotate(22deg);
    width: 84px;
}

.bm-brand-content {
    align-self: center;
    max-width: 430px;
    position: relative;
    z-index: 1;
}

.bm-login-logo {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
    height: 172px;
    margin-bottom: 34px;
    object-fit: contain;
    width: 172px;
}

.bm-login-eyebrow {
    color: #9cff73;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bm-brand-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    font-weight: 900;
    line-height: 0.95;
    margin: 0 0 18px;
}

.bm-brand-content p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

.bm-login-highlights {
    display: grid;
    gap: 10px;
    margin-top: 32px;
}

.bm-login-highlights span {
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    font-weight: 700;
    gap: 10px;
    padding: 12px 14px;
}

.bm-login-highlights i {
    color: #9cff73;
}

.bm-login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px;
}

.bm-login-form-header {
    margin-bottom: 28px;
}

.bm-login-form-header span {
    color: #39B54A;
    display: block;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.bm-login-form-header h2 {
    color: #111827;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 850;
    margin: 0 0 8px;
}

.bm-login-form-header p {
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.bm-login-form {
    display: grid;
    gap: 18px;
}

.bm-field .form-label {
    color: #253244;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.bm-input-wrap {
    position: relative;
}

.bm-input-wrap > i {
    color: #7b8da3;
    font-size: 1.05rem;
    left: 16px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.bm-input-wrap .form-control {
    background: #f8fafc;
    border: 1px solid #dce3ec;
    border-radius: 16px;
    color: #111827;
    font-weight: 650;
    min-height: 54px;
    padding-left: 48px;
    padding-right: 48px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bm-input-wrap .form-control:focus {
    background: #fff;
    border-color: rgba(57, 181, 74, 0.68);
    box-shadow: 0 0 0 0.22rem rgba(57, 181, 74, 0.14);
}

.bm-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #64748b;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 6px;
    transition: color 0.16s ease, transform 0.16s ease;
    width: 42px;
}

.bm-password-toggle:hover {
    color: #39B54A;
    transform: scale(1.05);
}

.bm-login-options {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.bm-remember {
    align-items: center;
    color: #475569;
    cursor: pointer;
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 9px;
}

.bm-remember .form-check-input {
    border-color: #cbd5e1;
    box-shadow: none;
    cursor: pointer;
    height: 18px;
    margin: 0;
    width: 18px;
}

.bm-remember .form-check-input:checked {
    background-color: #39B54A;
    border-color: #39B54A;
}

.bm-login-options a,
.bm-login-footer a {
    color: #208c32;
    font-weight: 800;
    text-decoration: none;
}

.bm-login-options a:hover,
.bm-login-footer a:hover {
    color: #166b25;
    text-decoration: underline;
}

.bm-login-button {
    align-items: center;
    background: #39B54A;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(57, 181, 74, 0.28);
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 850;
    gap: 10px;
    justify-content: center;
    min-height: 54px;
    overflow: hidden;
    position: relative;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bm-login-button:hover,
.bm-login-button:focus {
    background: #2f9f3f;
    box-shadow: 0 18px 36px rgba(57, 181, 74, 0.34);
    color: #fff;
    transform: translateY(-2px);
}

.bm-login-button:disabled {
    background: #82c98d;
    box-shadow: none;
    cursor: wait;
    transform: none;
}

.bm-button-loader {
    animation: bmSpin 0.75s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    border-top-color: #fff;
    display: none;
    height: 18px;
    width: 18px;
}

.bm-login-button.is-loading .bm-button-loader {
    display: inline-block;
}

.bm-alert {
    align-items: flex-start;
    border: 0;
    border-radius: 16px;
    display: flex;
    font-weight: 700;
    gap: 10px;
    line-height: 1.45;
    margin-bottom: 22px;
    padding: 14px 16px;
}

.bm-alert-danger {
    background: #fff1f2;
    color: #b4232c;
}

.bm-alert-success {
    background: #ecfdf3;
    color: #247d3a;
}

.bm-login-footer {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 650;
    margin-top: 34px;
    text-align: center;
}

@keyframes bmSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .auth-page {
        padding: 18px;
    }

    .bm-login-card {
        grid-template-columns: 1fr;
    }

    .bm-login-brand-panel {
        min-height: 380px;
        padding: 38px;
    }

    .bm-brand-content {
        max-width: 100%;
    }

    .bm-login-logo {
        height: 132px;
        margin-bottom: 24px;
        width: 132px;
    }

    .bm-login-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bm-login-form-panel {
        padding: 38px;
    }
}

@media (max-width: 620px) {
    .auth-page {
        padding: 12px;
    }

    .bm-login-card {
        border-radius: 22px;
        min-height: auto;
    }

    .bm-login-brand-panel {
        min-height: auto;
        padding: 28px;
    }

    .bm-login-logo {
        height: 104px;
        width: 104px;
    }

    .bm-login-highlights {
        grid-template-columns: 1fr;
    }

    .bm-login-form-panel {
        padding: 28px 22px;
    }

    .bm-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
