.sb-auth-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 40px 24px;
    background: #fffaf8;
    color: #3f2925;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.sb-login {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    width: min(100%, 1020px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(92, 32, 24, .12);
    border-radius: 28px;
    background: #fff;
    color: #3f2925;
    box-shadow: 0 22px 65px rgba(92, 32, 24, .1);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.sb-login__story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 610px;
    padding: 34px;
    isolation: isolate;
    background: #5c2018;
    color: #fffaf8;
}

.sb-login__photo {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sb-login__story::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(63, 24, 20, .45), rgba(63, 24, 20, .72) 65%, #3f1814);
}

.sb-login .sb-login__brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 750;
    text-decoration: none;
}

.sb-login__brand img,
.sb-login__mobile-brand img { object-fit: contain; }
.sb-login__story-copy { padding: 68px 0 48px; }
.sb-login .sb-login__eyebrow {
    margin: 0 0 14px;
    color: #8e4439;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.sb-login__story .sb-login__eyebrow { color: #f3d9cf; }
.sb-login .sb-login__story h2 {
    margin: 0 0 22px;
    color: #fff;
    font-family: inherit;
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
}
.sb-login__story-copy > p:last-child { margin: 0; font-size: 15px; line-height: 1.7; color: #f6e7df; }
.sb-login__place { font-size: 12px; color: #ecd2c7; }
.sb-login__form-panel { min-width: 0; padding: 34px 48px 40px; }
.sb-login .sb-login__back { display: inline-block; margin-bottom: 38px; color: #78574f; font-size: 13px; text-decoration: none; }
.sb-login .sb-login__title {
    margin: 0 0 12px;
    color: #5c2018;
    font-family: inherit;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.04em;
    text-transform: none;
}
.sb-login__intro { margin: 0 0 30px; color: #785f58; font-size: 14px; line-height: 1.65; }
.sb-login__form .mb-3 { margin-bottom: 21px !important; }
.sb-login .form-label { margin-bottom: 8px; color: #51332c; font-size: 14px; font-weight: 650; }
.sb-login .form-control {
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid #d8c6bf;
    border-radius: 12px;
    background: #fffdfa;
    color: #3f2925;
    font-family: inherit;
    font-size: 16px;
    box-shadow: none;
}
.sb-login .form-control::placeholder { color: #9c8880; }
.sb-login .form-control:focus { border-color: #4285f4; box-shadow: 0 0 0 3px rgba(66, 133, 244, .16); }
.sb-login .form-control.is-invalid { border-color: #b13e32; }
.sb-login .invalid-feedback { color: #a83227; font-size: 13px; line-height: 1.5; }
.sb-login__options { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 10px 16px; margin: 0 0 26px; }
.sb-login__remember { margin: 0; }
.sb-login .form-check-label { color: #6d5148; font-size: 13px; cursor: pointer; }
.sb-login .form-check-input { border-color: #bda59b; }
.sb-login .form-check-input:checked { border-color: #4285f4; background-color: #4285f4; }
.sb-login__options > a { font-size: 13px; }
.sb-login a:not(.sb-login__brand):not(.sb-login__back) { color: #356ec7; font-weight: 600; text-underline-offset: 3px; }
.sb-login a:hover { text-decoration: underline; }
.sb-login a:focus-visible,
.sb-login__submit:focus-visible { outline: 3px solid #4285f4; outline-offset: 4px; }
.sb-login .sb-login__submit {
    display: block;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: var(--theme-button-background, #4285f4);
    color: var(--theme-button-text, #fff);
    font: 750 15px/1.4 Inter, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    transition: background .15s ease;
}
.sb-login .sb-login__submit:hover { background: var(--theme-button-hover-background, #2f6fd1); }
.sb-login__footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 8px; margin-top: 26px; padding-top: 23px; border-top: 1px solid #eee3dc; color: #81665b; font-size: 13px; line-height: 1.7; }
.sb-login__mobile-brand { display: none; }

@media (max-width: 720px) {
    .sb-auth-body { display: block; padding: 24px 16px; }
    .sb-login { display: block; max-width: 480px; border-radius: 22px; }
    .sb-login__story { display: none; }
    .sb-login__form-panel { padding: 25px 24px 30px; }
    .sb-login .sb-login__back { margin-bottom: 26px; }
    .sb-login__mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 30px; color: #5c2018; font-size: 16px; font-weight: 750; }
    .sb-login .sb-login__title { font-size: 29px; }
    .sb-login__intro { margin-bottom: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    .sb-login .sb-login__submit { transition: none; }
}
