/* =============================================================================
   stay-host-signin.css   (wwwroot/css/stay-host-signin.css)
   -----------------------------------------------------------------------------
   The Stay host sign-in modal. A bright, premium split panel: a sunset brand
   panel on the left (umbrella + sun + sea), a refined email/password form on
   the right. Stay palette: sunset #F58220/#F89622, sky #56C4F8, cream, charcoal
   text. Namespaced .sh-auth-*. Mirrors the Tenant+ modal's UX, light-themed.
   ============================================================================= */

.sh-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Outfit', system-ui, sans-serif;
}

    .sh-auth-modal[hidden] {
        display: none;
    }

.sh-auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 17, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: shFade 180ms ease;
}

@keyframes shFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sh-auth-modal-shell {
    position: relative;
    width: 100%;
    max-width: 880px;
    min-height: 540px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #FFFFFF;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 32px 90px rgba(14, 14, 17, 0.34);
    animation: shPop 220ms cubic-bezier(.22, 1, .36, 1);
}

@keyframes shPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── LEFT brand panel — sunset scene ────────────────────────────────────── */
.sh-auth-brand {
    position: relative;
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    overflow: hidden;
    /* Charcoal canvas with a warm sunset glow — white copy reads cleanly. */
    background: radial-gradient(120% 90% at 50% 0%, #2A2530 0%, #1A1820 55%, #121017 100%);
}

.sh-auth-brand__sky {
    position: absolute;
    inset: 0;
    /* warm aurora wash top-right + sky-blue smear bottom-left */
    background: radial-gradient(60% 50% at 72% 6%, rgba(245,138,38,0.36), transparent 70%), radial-gradient(50% 40% at 16% 88%, rgba(86,196,248,0.16), transparent 72%);
    pointer-events: none;
}

.sh-auth-brand__sun {
    position: absolute;
    width: 240px;
    height: 240px;
    left: 50%;
    bottom: -96px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, rgba(255,196,120,0.5), rgba(245,138,38,0.18) 56%, rgba(245,138,38,0) 72%);
    opacity: 0.7;
    pointer-events: none;
}

.sh-auth-brand__sea {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(86,196,248,0.0), rgba(86,196,248,0.55));
    pointer-events: none;
}

.sh-auth-brand__top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.sh-auth-brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(14,14,17,0.18);
}

.sh-auth-brand__wordmark {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.sh-auth-brand__body {
    position: relative;
    z-index: 2;
}

.sh-auth-brand__eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.96;
    margin: 0 0 10px;
}

.sh-auth-brand__heading {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.7rem;
    line-height: 1.18;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

    .sh-auth-brand__heading em {
        font-style: normal;
        color: #F89622;
    }

.sh-auth-brand__lede {
    font-size: 0.94rem;
    line-height: 1.55;
    opacity: 0.94;
    margin: 0 0 18px;
}

.sh-auth-brand__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

    .sh-auth-brand__list li {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        font-size: 0.88rem;
        line-height: 1.4;
    }

.sh-auth-brand__dot {
    flex: 0 0 auto;
    margin-top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #F89622;
    box-shadow: 0 0 0 3px rgba(248,150,34,0.22);
}

.sh-auth-brand__foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    opacity: 0.9;
}

.sh-auth-brand__foot-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7CFFB2;
    box-shadow: 0 0 8px #7CFFB2;
}

/* ── RIGHT form panel ───────────────────────────────────────────────────── */
.sh-auth-panel {
    position: relative;
    padding: 40px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sh-auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(14,14,17,0.10);
    background: #fff;
    color: #6C757D;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}

    .sh-auth-modal-close:hover {
        background: #F6F7F9;
        color: #1A1A1F;
    }

.sh-auth-panel__tag {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.sh-auth-panel__tag-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #FFF4E9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-auth-panel__tag-text {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    color: #0E0E11;
}

.sh-auth-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0E0E11;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.sh-auth-sub {
    font-size: 0.9rem;
    color: #6C757D;
    margin: 0 0 20px;
}

.sh-auth-pane[hidden] {
    display: none;
}

/* Error banner */
.sh-auth-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FDECEC;
    color: #C0392B;
    border: 1px solid #F5C6C2;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
}

    .sh-auth-error svg {
        flex: 0 0 auto;
    }

/* Fields */
.sh-auth-form {
    display: grid;
    gap: 14px;
}

.sh-auth-field {
    display: grid;
    gap: 6px;
}

.sh-auth-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1A1A1F;
}

.sh-auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.sh-auth-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #F58220;
    text-decoration: none;
}

    .sh-auth-link:hover {
        text-decoration: underline;
    }

.sh-auth-input {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(14,14,17,0.12);
    border-radius: 12px;
    padding: 0 12px;
    background: #FBFBFC;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

    .sh-auth-input:focus-within {
        border-color: #F58220;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(245,130,32,0.12);
    }

.sh-auth-input__icon {
    color: #9AA0AD;
    display: flex;
    flex: 0 0 auto;
}

.sh-auth-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.92rem;
    color: #0E0E11;
}

.sh-auth-input__toggle {
    border: none;
    background: transparent;
    color: #9AA0AD;
    cursor: pointer;
    display: flex;
    padding: 4px;
}

    .sh-auth-input__toggle:hover {
        color: #1A1A1F;
    }

.sh-auth-eye-off {
    display: none;
}

.sh-pw-shown .sh-auth-eye-on {
    display: none;
}

.sh-pw-shown .sh-auth-eye-off {
    display: block;
}

/* Remember checkbox */
.sh-auth-check {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 0.84rem;
    color: #42454D;
}

    .sh-auth-check input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.sh-auth-check__box {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid rgba(14,14,17,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 120ms ease, border-color 120ms ease;
}

    .sh-auth-check__box svg {
        opacity: 0;
    }

.sh-auth-check input:checked + .sh-auth-check__box {
    background: #F58220;
    border-color: #F58220;
}

    .sh-auth-check input:checked + .sh-auth-check__box svg {
        opacity: 1;
    }

/* Submit */
.sh-auth-modal-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px 18px;
    background: linear-gradient(135deg, #F58220, #F89622);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 10px 24px rgba(245,130,32,0.3);
    transition: box-shadow 160ms ease, filter 160ms ease;
}

    .sh-auth-modal-submit:hover {
        filter: brightness(1.03);
        box-shadow: 0 12px 28px rgba(245,130,32,0.38);
    }

    .sh-auth-modal-submit:active {
        transform: translateY(1px);
    }

    .sh-auth-modal-submit:disabled {
        opacity: 0.7;
        cursor: default;
    }

.sh-auth-modal-submit__arrow {
    transition: transform 160ms ease;
}

.sh-auth-modal-submit:hover .sh-auth-modal-submit__arrow {
    transform: translateX(3px);
}

.sh-auth-modal-spin {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    animation: shSpin 0.7s linear infinite;
}

.sh-auth-modal-submit.is-loading .sh-auth-modal-spin {
    display: inline-block;
}

.sh-auth-modal-submit.is-loading .sh-auth-modal-submit-label,
.sh-auth-modal-submit.is-loading .sh-auth-modal-submit__arrow {
    display: none;
}

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

/* Footer */
.sh-auth-foot {
    margin-top: 18px;
    font-size: 0.84rem;
    color: #6C757D;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sh-auth-foot--center {
    justify-content: center;
}

.sh-auth-foot a {
    color: #F58220;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .sh-auth-foot a:hover {
        text-decoration: underline;
    }

/* Channels (forgot) */
.sh-auth-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.sh-auth-channel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1.5px solid rgba(14,14,17,0.12);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: #42454D;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

    .sh-auth-channel.is-active {
        border-color: #F58220;
        background: #FFF4E9;
        color: #C25E12;
    }

/* OTP */
.sh-auth-otp {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

    .sh-auth-otp input {
        width: 100%;
        aspect-ratio: 1;
        text-align: center;
        font-size: 1.3rem;
        font-weight: 700;
        color: #0E0E11;
        border: 1.5px solid rgba(14,14,17,0.14);
        border-radius: 12px;
        background: #FBFBFC;
        outline: none;
        transition: border-color 140ms ease, box-shadow 140ms ease;
    }

        .sh-auth-otp input:focus {
            border-color: #F58220;
            box-shadow: 0 0 0 4px rgba(245,130,32,0.12);
            background: #fff;
        }

/* Confirm (sent) */
.sh-auth-confirm {
    text-align: center;
    padding: 12px 0;
}

.sh-auth-confirm__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFF4E9;
    color: #F58220;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.sh-auth-confirm__title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0E0E11;
    margin: 0 0 8px;
}

.sh-auth-confirm__lede {
    font-size: 0.9rem;
    color: #6C757D;
    line-height: 1.55;
    margin: 0;
}

/* Body scroll-lock */
body.sh-auth-open {
    overflow: hidden;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .sh-auth-modal-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        max-width: 460px;
        max-height: 92vh;
        overflow-y: auto;
    }

    .sh-auth-brand {
        display: none;
    }

    .sh-auth-panel {
        padding: 30px 24px;
    }

    .sh-auth-panel__tag {
        display: flex;
    }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .sh-auth-modal-backdrop, .sh-auth-modal-shell {
        animation: none;
    }

    .sh-auth-modal-submit, .sh-auth-modal-submit__arrow {
        transition: none;
    }
}
