/* =========================================================
   RAIH AUTH BM V1
   Login + Registration
   Designed to match the current RAIH public homepage.
========================================================= */


/* =========================================================
   PAGE / HEADER
========================================================= */

.auth-bm-page {
    background: #ffffff;
}

.auth-bm-page .public-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background:
        rgba(255, 255, 255, .95);

    border-bottom:
        1px solid
        rgba(226, 232, 240, .92);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-bm-page .public-header-inner {
    max-width: 1240px;
}


/* =========================================================
   SHELL
========================================================= */

.auth-bm-shell {
    position: relative;

    min-height:
        calc(100vh - 82px);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(91, 92, 226, .10),
            transparent 30%
        ),
        radial-gradient(
            circle at 94% 88%,
            rgba(20, 184, 166, .09),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8faff 100%
        );
}

.auth-bm-glow {
    position: absolute;

    pointer-events: none;

    border-radius: 50%;

    filter: blur(100px);
}

.auth-bm-glow-one {
    width: 420px;
    height: 420px;

    top: -200px;
    left: -210px;

    background:
        rgba(91, 92, 226, .12);
}

.auth-bm-glow-two {
    width: 440px;
    height: 440px;

    right: -230px;
    bottom: -230px;

    background:
        rgba(20, 184, 166, .10);
}

.auth-bm-layout {
    position: relative;
    z-index: 2;

    width:
        min(
            1180px,
            calc(100% - 48px)
        );

    min-height:
        calc(100vh - 82px);

    margin: 0 auto;
    padding:
        48px
        0
        58px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(420px, .92fr);

    align-items: center;

    gap: 65px;
}

.auth-bm-register-layout {
    align-items: start;

    padding-top: 42px;
}


/* =========================================================
   STORY PANEL
========================================================= */

.auth-bm-story {
    min-width: 0;

    padding:
        10px
        0;
}

.auth-bm-back {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 31px;

    color: #64748b;

    font-size: 11px;
    font-weight: 750;

    transition:
        color .18s ease;
}

.auth-bm-back:hover {
    color: #4338ca;
}

.auth-bm-back svg {
    width: 15px;
    height: 15px;
}

.auth-bm-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #4f46e5;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .11em;
    text-transform: uppercase;
}

.auth-bm-eyebrow span {
    width: 7px;
    height: 7px;

    background: #14b8a6;

    border-radius: 50%;
}

.auth-bm-story h1 {
    max-width: 650px;

    margin:
        17px
        0
        0;

    color: #0f172a;

    font-size:
        clamp(
            45px,
            5.4vw,
            64px
        );

    font-weight: 950;

    line-height: 1.01;
    letter-spacing: -.055em;
}

.auth-bm-story h1 em {
    display: block;

    margin-top: 7px;

    color: #5b5ce2;

    font-style: normal;
}

.auth-bm-story-copy {
    max-width: 600px;

    margin:
        21px
        0
        0;

    color: #64748b;

    font-size: 16px;
    line-height: 1.72;
}


/* =========================================================
   LOGIN STORY VISUAL
========================================================= */

.auth-bm-story-visual {
    max-width: 610px;

    margin-top: 31px;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        #e2e8f0;

    border-radius: 23px;

    box-shadow:
        0 25px 65px
        rgba(67, 56, 202, .10);
}

.auth-bm-story-visual img {
    width: 100%;
    height: auto;

    display: block;
}

.auth-bm-story-points {
    max-width: 610px;

    margin-top: 15px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;
}

.auth-bm-story-points > div {
    padding: 13px 13px 14px;

    background:
        rgba(255, 255, 255, .86);

    border:
        1px solid
        #e2e8f0;

    border-radius: 13px;
}

.auth-bm-story-points span,
.auth-bm-story-points strong,
.auth-bm-story-points small {
    display: block;
}

.auth-bm-story-points span {
    color: #5b5ce2;

    font-size: 9px;
    font-weight: 950;
}

.auth-bm-story-points strong {
    margin-top: 7px;

    color: #0f172a;

    font-size: 11px;
    font-weight: 900;
}

.auth-bm-story-points small {
    margin-top: 5px;

    color: #94a3b8;

    font-size: 9px;
    line-height: 1.45;
}


/* =========================================================
   REGISTER STORY
========================================================= */

.auth-bm-register-story {
    padding-top: 4px;
}

.auth-bm-benefits {
    max-width: 600px;

    margin-top: 29px;

    display: grid;

    gap: 10px;
}

.auth-bm-benefits article {
    padding:
        13px
        15px;

    display: grid;

    grid-template-columns:
        34px minmax(0, 1fr);

    align-items: start;

    gap: 12px;

    background:
        rgba(255, 255, 255, .86);

    border:
        1px solid
        #e2e8f0;

    border-radius: 14px;
}

.auth-bm-benefits article > span {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    color: #4338ca;
    background: #eef2ff;

    border-radius: 10px;

    font-size: 9px;
    font-weight: 950;
}

.auth-bm-benefits strong,
.auth-bm-benefits small {
    display: block;
}

.auth-bm-benefits strong {
    color: #0f172a;

    font-size: 12px;
    font-weight: 900;
}

.auth-bm-benefits small {
    margin-top: 4px;

    color: #64748b;

    font-size: 10px;
    line-height: 1.5;
}

.auth-bm-register-visual {
    max-width: 600px;

    margin-top: 17px;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        #e2e8f0;

    border-radius: 20px;

    box-shadow:
        0 20px 50px
        rgba(67, 56, 202, .08);
}

.auth-bm-register-visual img {
    width: 100%;
    height: auto;

    display: block;
}


/* =========================================================
   FORM CARD
========================================================= */

.auth-bm-form-side {
    width: 100%;
}

.auth-bm-card {
    width: 100%;

    padding:
        32px;

    background:
        rgba(255, 255, 255, .97);

    border:
        1px solid
        rgba(226, 232, 240, .98);

    border-radius: 25px;

    box-shadow:
        0 30px 80px
        rgba(15, 23, 42, .10);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-bm-register-card {
    padding-top: 29px;
    padding-bottom: 29px;
}

.auth-bm-mobile-logo {
    display: none;
}

.auth-bm-mobile-intro {
    display: none;
}

.auth-bm-form-heading {
    margin-bottom: 24px;
}

.auth-bm-form-heading > span {
    display: block;

    margin-bottom: 6px;

    color: #4f46e5;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .11em;
    text-transform: uppercase;
}

.auth-bm-form-heading h2 {
    margin: 0;

    color: #0f172a;

    font-size: 29px;
    font-weight: 950;

    letter-spacing: -.04em;
}

.auth-bm-form-heading p {
    margin:
        8px
        0
        0;

    color: #64748b;

    font-size: 12px;
    line-height: 1.58;
}


/* =========================================================
   ALERT
========================================================= */

.auth-bm-alert {
    margin-bottom: 18px;
    padding:
        12px
        13px;

    display: flex;
    align-items: flex-start;

    gap: 9px;

    border-radius: 12px;

    font-size: 11px;
    line-height: 1.55;
}

.auth-bm-alert.success {
    color: #047857;
    background: #ecfdf5;

    border:
        1px solid
        #a7f3d0;
}

.auth-bm-alert svg {
    width: 16px;
    height: 16px;

    flex: none;

    margin-top: 1px;
}


/* =========================================================
   FORM
========================================================= */

.auth-bm-form {
    margin: 0;
}

.auth-bm-field {
    margin-bottom: 16px;
}

.auth-bm-field label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 11px;
    font-weight: 800;
}

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

.auth-bm-input-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform:
        translateY(-50%);

    color: #94a3b8;

    pointer-events: none;
}

.auth-bm-input-icon svg {
    width: 17px;
    height: 17px;
}

.auth-bm-input input {
    width: 100%;
    height: 50px;

    padding:
        0
        14px
        0
        43px;

    color: #0f172a;
    background: #ffffff;

    border:
        1px solid
        #dbe3ec;

    border-radius: 12px;

    outline: 0;

    font-size: 13px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.auth-bm-input-password input {
    padding-right: 80px;
}

.auth-bm-input input::placeholder {
    color: #a8b3c3;
}

.auth-bm-input input:hover {
    border-color: #cbd5e1;
}

.auth-bm-input input:focus {
    border-color: #5b5ce2;

    box-shadow:
        0 0 0 4px
        rgba(91, 92, 226, .09);
}

.auth-bm-password-toggle {
    position: absolute;

    right: 12px;
    top: 50%;

    transform:
        translateY(-50%);

    padding:
        6px
        6px;

    color: #5b5ce2;
    background: transparent;

    border: 0;

    font-size: 10px;
    font-weight: 850;

    cursor: pointer;
}

.auth-bm-password-toggle:hover {
    color: #4338ca;
}

.auth-bm-error {
    margin-top: 6px;

    color: #dc2626;

    font-size: 10px;
    font-weight: 650;

    line-height: 1.45;
}

.auth-bm-password-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


/* =========================================================
   LOGIN OPTIONS
========================================================= */

.auth-bm-options {
    margin:
        1px
        0
        20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.auth-bm-remember {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #64748b;

    font-size: 11px;

    cursor: pointer;
}

.auth-bm-remember input {
    width: 15px;
    height: 15px;

    accent-color: #5b5ce2;
}

.auth-bm-forgot {
    color: #5b5ce2;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;
}

.auth-bm-forgot:hover {
    color: #4338ca;
}


/* =========================================================
   BUTTONS / DIVIDER
========================================================= */

.auth-bm-submit {
    min-height: 53px;

    font-size: 13px;
}

.auth-bm-secondary {
    min-height: 50px;

    font-size: 12px;
}

.auth-bm-divider {
    position: relative;

    margin:
        21px
        0;

    text-align: center;
}

.auth-bm-divider::before {
    content: '';

    position: absolute;

    top: 50%;
    left: 0;
    right: 0;

    height: 1px;

    background: #e2e8f0;
}

.auth-bm-divider span {
    position: relative;

    padding:
        0
        11px;

    color: #94a3b8;
    background: #ffffff;

    font-size: 10px;
}

.auth-bm-security {
    margin-top: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    color: #94a3b8;

    font-size: 9px;
}

.auth-bm-security svg {
    width: 13px;
    height: 13px;
}


/* =========================================================
   REGISTER PLAN SUMMARY
========================================================= */

.auth-bm-plan {
    margin-bottom: 21px;
    padding:
        15px
        16px;

    background:
        linear-gradient(
            135deg,
            #f5f3ff,
            #f0fdfa
        );

    border:
        1px solid
        #ddd6fe;

    border-radius: 15px;
}

.auth-bm-plan-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.auth-bm-plan-top small,
.auth-bm-plan-top strong {
    display: block;
}

.auth-bm-plan-top small {
    color: #64748b;

    font-size: 9px;
    font-weight: 750;
}

.auth-bm-plan-top strong {
    margin-top: 3px;

    color: #0f172a;

    font-size: 13px;
    font-weight: 900;
}

.auth-bm-plan-badge {
    padding:
        5px
        8px;

    flex: none;

    color: #047857;
    background: #ecfdf5;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 900;

    text-transform: uppercase;
}

.auth-bm-plan-main {
    margin-top: 11px;

    color: #0f172a;

    font-size: 15px;
    font-weight: 900;
}

.auth-bm-plan > p {
    margin:
        5px
        0
        0;

    color: #64748b;

    font-size: 10px;
    line-height: 1.55;
}

.auth-bm-plan-price {
    margin-top: 10px;
    padding-top: 10px;

    color: #64748b;

    border-top:
        1px solid
        rgba(99, 102, 241, .10);

    font-size: 10px;
    line-height: 1.55;
}

.auth-bm-plan-price strong {
    color: #334155;
}

.auth-bm-plan-note {
    margin-top: 10px;

    display: flex;
    align-items: flex-start;

    gap: 7px;

    color: #475569;

    font-size: 9px;
    font-weight: 700;

    line-height: 1.5;
}

.auth-bm-plan-note svg {
    width: 14px;
    height: 14px;

    margin-top: 1px;

    flex: none;

    color: #059669;
}


/* =========================================================
   LEGAL CONSENT
========================================================= */

.auth-bm-consent {
    margin:
        3px
        0
        17px;

    padding:
        13px
        14px;

    background: #f8fafc;

    border:
        1px solid
        #e2e8f0;

    border-radius: 12px;
}

.auth-bm-consent label {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    cursor: pointer;
}

.auth-bm-consent input {
    width: 16px;
    height: 16px;

    margin:
        2px
        0
        0;

    flex:
        0
        0
        16px;

    accent-color: #5b5ce2;
}

.auth-bm-consent span {
    color: #64748b;

    font-size: 10px;
    line-height: 1.6;
}

.auth-bm-consent a {
    color: #4f46e5;

    font-weight: 800;
}

.auth-bm-consent a:hover {
    text-decoration: underline;
}

.auth-bm-submit-note {
    margin:
        9px
        7px
        0;

    color: #94a3b8;

    font-size: 9px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .auth-bm-layout,
    .auth-bm-register-layout {
        width:
            min(
                540px,
                calc(100% - 34px)
            );

        min-height:
            calc(100vh - 82px);

        padding:
            38px
            0
            55px;

        grid-template-columns: 1fr;

        gap: 0;
    }

    .auth-bm-story {
        display: none;
    }

    .auth-bm-mobile-logo {
        display: block;

        margin-bottom: 13px;
    }

    .auth-bm-mobile-logo img {
        width: auto;
        height: 45px;

        display: block;
    }

    .auth-bm-mobile-intro {
        display: block;

        margin:
            0
            0
            23px;

        color: #64748b;

        font-size: 11px;
        line-height: 1.55;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .auth-bm-shell {
        min-height:
            calc(100vh - 70px);
    }

    .auth-bm-layout,
    .auth-bm-register-layout {
        width:
            calc(100% - 24px);

        min-height:
            calc(100vh - 70px);

        padding:
            22px
            0
            42px;
    }

    .auth-bm-card,
    .auth-bm-register-card {
        padding:
            25px
            19px;

        border-radius: 20px;
    }

    .auth-bm-form-heading {
        margin-bottom: 21px;
    }

    .auth-bm-form-heading h2 {
        font-size: 25px;
    }

    .auth-bm-password-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .auth-bm-plan-top {
        align-items: flex-start;

        flex-direction: column;
    }

    .auth-bm-options {
        align-items: flex-start;

        gap: 10px;
    }

}


@media (max-width: 420px) {

    .auth-bm-card,
    .auth-bm-register-card {
        padding:
            23px
            17px;
    }

    .auth-bm-options {
        flex-direction: column;
    }

    .auth-bm-forgot {
        white-space: normal;
    }

}
