.host-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    background: #f4ebe3;
    color: #35190d;
}

.host-login-shell {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.12fr);
    width: min(100%, 1200px);
    min-height: min(660px, calc(100svh - 2rem));
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(82, 43, 21, .12);
}

.host-login-brand {
    display: flex;
    flex-direction: column;
    padding: 2.25rem;
    background: #ffe3d1;
    color: #762d10;
}

.host-login-logo {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.host-login-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: .55rem;
    background: #f8c9ad;
}

.host-login-brand-content {
    width: min(100%, 390px);
    margin-block: auto;
}

.host-login-brand-content h2 {
    max-width: 360px;
    margin-bottom: .75rem;
    font-size: 1.55rem;
    font-weight: 750;
    line-height: 1.2;
}

.host-login-brand-content > p {
    max-width: 390px;
    margin-bottom: 3.5rem;
    color: #873c20;
    font-size: .94rem;
    line-height: 1.55;
}

.host-login-features {
    display: grid;
    gap: .8rem;
}

.host-login-features li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .88rem;
    font-weight: 650;
}

.host-login-features li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: .6rem;
    background: #f8c9ad;
}

/* Intro panel for the listing poster login. */
.host-login-shell--poster {
    min-height: 700px;
}

.host-login-brand--poster {
    position: relative;
    overflow: hidden;
    background-color: #fff2e9;
    background-image:
        linear-gradient(to bottom, #fff2e9 0%, #fff2e9 60%, rgba(255, 242, 233, 0) 75%),
        url("../../images/host/login-poster-background.webp");
    background-position: center, center bottom;
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    color: #321b10;
}

.host-login-brand--poster .host-login-logo {
    width: fit-content;
    font-size: 1.5rem;
    letter-spacing: -.035em;
}

.host-login-brand--poster .host-login-logo-icon {
    width: 40px;
    height: 40px;
    background: #ffe1d0;
    color: #f26313;
    font-size: 1.35rem;
}

.host-login-brand--poster .host-login-brand-content {
    width: min(100%, 470px);
    margin-block: 2rem auto;
    padding-bottom: 0;
}

.host-login-brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.15rem;
    padding: .35rem .8rem;
    border: 1px solid #f26313;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    color: #74300d;
    font-size: .85rem;
    font-weight: 700;
}

.host-login-brand-eyebrow i {
    color: #f26313;
}

.host-login-brand--poster .host-login-brand-content h2 {
    max-width: none;
    margin-bottom: .9rem;
    font-size: clamp(1.8rem, 2.6vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.13;
}

.host-login-brand--poster .host-login-brand-content h2 span {
    color: #f26313;
}

.host-login-brand--poster .host-login-brand-content > p {
    max-width: 440px;
    margin-bottom: 1.2rem;
    color: #493024;
    font-size: .98rem;
    line-height: 1.5;
}

.host-login-brand--poster .host-login-features {
    gap: .65rem;
}

.host-login-brand--poster .host-login-features li {
    align-items: flex-start;
    gap: .8rem;
    font-weight: 400;
}

.host-login-brand--poster .host-login-feature-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: .7rem;
    background: #ffdfca;
    color: #f26313;
    font-size: 1.25rem;
}

.host-login-brand--poster .host-login-features strong,
.host-login-brand--poster .host-login-features small {
    display: block;
}

.host-login-brand--poster .host-login-features strong {
    margin-bottom: .1rem;
    color: #321b10;
    font-size: .95rem;
    line-height: 1.3;
}

.host-login-brand--poster .host-login-features small {
    color: #493024;
    font-size: .78rem;
    line-height: 1.35;
}

.host-login-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2.25rem clamp(1.5rem, 5vw, 3rem);
    background: #fff;
    color: #321b10;
}

.host-login-back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    width: fit-content;
    color: #70432d;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}

.host-login-back:hover,
.host-login-password-toggle:hover {
    color: #d94e13;
}

.host-login-content {
    width: min(100%, 420px);
    min-width: 0;
    max-width: 100%;
    margin: auto;
    padding-block: 2rem;
}

.host-login-title {
    margin-bottom: .25rem;
    color: #321b10;
    font-size: 2rem;
    font-weight: 750;
    line-height: 1.15;
}

.host-login-subtitle {
    color: #805f4c;
    font-size: .9rem;
}

.host-login-form .form-label {
    margin-bottom: .4rem;
    color: #321b10;
    font-size: .85rem;
    font-weight: 650;
}

.host-login-input-wrap {
    position: relative;
}

.host-login-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: #a47a62;
    pointer-events: none;
}

.host-login-form .form-control {
    min-height: 44px;
    padding: .6rem .8rem .6rem 2.65rem;
    border-color: #efd3c2;
    background: #fff9f5;
    color: #321b10;
    box-shadow: none;
}

.host-login-password-wrap .form-control {
    padding-right: 3.5rem;
}

.host-login-form .form-control::placeholder {
    color: #a47a62;
}

.host-login-form .form-control:focus {
    border-color: #df5418;
    box-shadow: 0 0 0 .2rem rgba(223, 84, 24, .14);
}

.host-login-captcha img {
    height: 44px;
    max-width: 100%;
    flex: 0 0 auto;
    border: 1px solid #efd3c2;
    border-radius: .375rem;
}

.host-login-captcha input[type="text"] {
    width: 0;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 auto;
    padding: .6rem .8rem;
    border: 1px solid #efd3c2;
    border-radius: .375rem;
    background: #fff9f5;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.host-login-captcha input[type="text"]:focus {
    border-color: #df5418;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(223, 84, 24, .14);
}

.host-login-form .form-control[aria-invalid="true"] {
    border-color: #dc655b;
}

.host-login-password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    display: grid;
    place-items: center;
    width: 48px;
    height: calc(100% - 2px);
    border: 0;
    border-left: 1px solid #efd3c2;
    border-radius: 0 .375rem .375rem 0;
    background: transparent;
    color: #805f4c;
}

.host-login-options,
.host-login-register {
    color: #805f4c;
    font-size: .82rem;
}

.host-login-options label {
    cursor: pointer;
}

.host-login-options .form-check-input {
    margin: 0;
    accent-color: #df5418;
}

.host-login-options a,
.host-login-register a {
    color: #d94e13;
    font-weight: 650;
    text-decoration: none;
    text-underline-offset: 2px;
}

.host-login-submit {
    min-height: 44px;
    border: 1px solid #dc5419;
    border-radius: .55rem;
    background: #dc5419;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    transition: background-color .15s ease, border-color .15s ease;
}

.host-login-submit:hover {
    border-color: #bd4310;
    background: #bd4310;
}

.host-login-register {
    margin-top: 1.25rem;
    padding-top: 1.2rem;
    border-top: 1px solid #f0e5dc;
}

.host-login-error {
    color: #b9382d;
    font-size: .8rem;
}

.host-login-notice {
    margin-bottom: 1.25rem;
    padding: .75rem .9rem;
    border: 1px solid #d0dfed;
    border-radius: .5rem;
    background: #f1f7fc;
    color: #315f7e;
    font-size: .84rem;
    line-height: 1.5;
}

.host-login-notice--error {
    border-color: #efc1b8;
    background: #fff3f0;
    color: #a83227;
}

.host-login-form .errorlist {
    margin: .35rem 0 0;
    padding: 0;
    list-style: none;
}

.host-registration-shell.host-login-shell--poster {
    min-height: 700px;
}

.host-registration-content {
    width: min(100%, 620px);
    margin: auto;
    padding-block: 1.5rem;
}

.host-registration-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: .8rem;
}

.host-registration-field {
    min-width: 0;
}

.host-registration-form .form-label {
    margin-bottom: .35rem;
}

.host-registration-form .host-login-input-wrap > i {
    left: .8rem;
}

.host-registration-form .form-control {
    padding-left: 2.35rem;
}

.host-registration-form .host-login-password-wrap .form-control {
    padding-right: 3rem;
}

.host-required {
    color: #b9382d;
}

.host-optional {
    color: #9b7865;
    font-weight: 400;
}

.host-registration-terms {
    margin: 1.35rem 0 1.1rem;
    color: #805f4c;
    font-size: .8rem;
}

.host-registration-terms label {
    cursor: pointer;
}

.host-registration-terms .form-check-input {
    flex: 0 0 auto;
    margin-top: .18rem;
    accent-color: #df5418;
}

.host-registration-terms .host-login-error {
    margin-left: 1.45rem;
}

.success-page {
    max-width: 480px;
}

.host-recovery-shell {
    min-height: min(600px, calc(100svh - 2rem));
}

.host-recovery-shell.host-login-shell--poster {
    min-height: 620px;
}

.host-recovery-content {
    width: min(100%, 420px);
}

.host-recovery-form input {
    width: 100%;
    min-height: 44px;
    padding: .6rem .8rem .6rem 2.65rem;
    border: 1px solid #efd3c2;
    border-radius: .375rem;
    outline: 0;
    background: #fff9f5;
    color: #321b10;
}

.host-recovery-form input:focus {
    border-color: #df5418;
    box-shadow: 0 0 0 .2rem rgba(223, 84, 24, .14);
}

.host-recovery-form ul {
    margin: .35rem 0 0;
    padding-left: 1rem;
}

.host-verification-field {
    margin-bottom: 1.1rem;
}

.host-verification-field label {
    display: block;
    margin-bottom: .45rem;
    color: #321b10;
    font-size: .85rem;
    font-weight: 650;
}

.host-verification-form .host-verification-field input {
    display: block;
    padding: .6rem .85rem;
    font-size: 1rem;
    letter-spacing: .04em;
}

.host-verification-form .host-verification-field input[aria-invalid="true"],
.host-verification-form .host-verification-field:has(.host-verification-error) input {
    border-color: #c44536;
    background: #fffaf8;
}

.host-verification-error {
    margin: .45rem 0 0;
    color: #b9382d;
    font-size: .82rem;
    line-height: 1.45;
}

.host-verification-alert {
    margin-bottom: 1rem;
    padding: .75rem .9rem;
    border: 1px solid #efc1b8;
    border-radius: .5rem;
    background: #fff3f0;
    color: #a83227;
    font-size: .84rem;
    line-height: 1.45;
}

.host-verification-alert .errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.host-verification-flash {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding: .8rem .85rem;
    border: 1px solid #c8e2ed;
    border-radius: .5rem;
    background: #eaf7fc;
    color: #24576b;
    font-size: .85rem;
    line-height: 1.5;
    transition: opacity .25s ease, transform .25s ease;
}

.host-verification-flash--error {
    border-color: #efc1b8;
    background: #fff3f0;
    color: #a83227;
}

.host-verification-flash.is-dismissing {
    opacity: 0;
    transform: translateY(-5px);
}

.host-verification-flash-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.host-verification-flash-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    margin: -.15rem -.2rem 0 0;
    padding: 0;
    border: 0;
    border-radius: .25rem;
    background: transparent;
    color: inherit;
    font-size: 1.3rem;
    line-height: 1;
    opacity: .7;
    cursor: pointer;
}

.host-verification-flash-close:hover {
    background: rgba(0, 0, 0, .06);
    opacity: 1;
}

.host-verification-flash-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .host-verification-flash {
        transition: none;
    }
}

.host-verification-hint {
    margin: 1rem 0 0;
    color: #805f4c;
    font-size: .82rem;
    line-height: 1.5;
}

.host-verification-hint strong {
    color: #70432d;
    font-variant-numeric: tabular-nums;
}

.host-verification-next-step {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #f0d6c6;
    border-radius: .7rem;
    background: #fff8f3;
    color: #70432d;
}

.host-verification-next-step-icon {
    display: grid;
    flex: 0 0 2.4rem;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .55rem;
    background: #ffe4d3;
    color: #c94c17;
}

.host-verification-next-step p {
    margin: 0;
    align-self: center;
    font-size: .88rem;
    line-height: 1.5;
}

.host-verification-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .6rem 1rem;
    text-align: center;
    text-decoration: none;
}

.host-verification-login-link:hover {
    color: #fff;
    text-decoration: none;
}

.host-verification-login-link:focus-visible {
    outline: 3px solid rgba(223, 84, 24, .35);
    outline-offset: 3px;
}

.host-verification-resend-form {
    margin-top: .85rem;
}

.host-verification-resend {
    width: 100%;
    min-height: 44px;
    padding: .6rem 1rem;
    border: 1px solid #e9b69c;
    border-radius: .55rem;
    background: #fff;
    color: #b84316;
    font-size: .87rem;
    font-weight: 650;
}

.host-verification-resend:hover:not(:disabled) {
    border-color: #d94e13;
    background: #fff7f1;
}

.host-verification-resend:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.host-recovery-notice {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid #e9d9cc;
    border-radius: .5rem;
    background: #fff9f5;
    color: #70432d;
    font-size: .9rem;
    line-height: 1.5;
}

.host-recovery-notice > i {
    margin-top: .15rem;
    color: #d94e13;
}

.host-recovery-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 768px) {
    .host-login-shell--poster {
        min-height: 0;
    }

    .host-registration-shell.host-login-shell--poster,
    .host-recovery-shell.host-login-shell--poster {
        min-height: 0;
    }

    .host-login-shell {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 560px);
        min-height: 0;
    }

    .host-login-brand {
        min-height: 300px;
        padding: 1.5rem;
    }

    .host-login-brand-content {
        margin-top: 2rem;
    }

    .host-login-brand-content > p {
        margin-bottom: 1.5rem;
    }

    .host-login-brand--poster .host-login-brand-content {
        margin-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .host-login-brand--poster {
        min-height: 700px;
    }

    .host-login-main {
        min-height: 500px;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .host-login-page {
        align-items: flex-start;
        padding: .5rem;
    }

    .host-login-shell {
        border-radius: 12px;
    }

    .host-login-brand {
        min-height: 0;
        padding: 1.25rem;
    }

    .host-login-brand-content {
        margin-top: 1.75rem;
    }

    .host-login-brand-content h2 {
        font-size: 1.35rem;
    }

    .host-login-brand--poster .host-login-logo {
        font-size: 1.15rem;
    }

    .host-login-brand--poster {
        min-height: 680px;
    }

    .host-login-brand--poster .host-login-brand-content h2 {
        font-size: 1.75rem;
    }

    .host-login-brand--poster .host-login-feature-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .host-login-features {
        gap: .55rem;
    }

    .host-login-features li {
        font-size: .8rem;
    }

    .host-login-features li > span {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .host-login-main {
        min-height: 0;
        padding: 1.25rem;
    }

    .host-login-content,
    .host-registration-content {
        padding-block: 2rem;
    }

    .host-registration-fields {
        grid-template-columns: 1fr;
        row-gap: .6rem;
    }

    .host-login-title {
        font-size: 1.75rem;
    }
}
