/* ==========================================================
   GestHotels Auth UI
   AUTH-01
========================================================== */

* {
    box-sizing: border-box;
}

body.gh-auth-screen {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;

    background:
        radial-gradient(
            circle at top left,
            rgba(37,99,235,.17),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            #eef4ff 0%,
            #f8fafc 48%,
            #eef2f7 100%
        );

    color: var(--text-strong);
}

.gh-auth-page {
    min-height: 100vh;
    min-height: 100dvh;

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

    padding:
        max(24px, env(safe-area-inset-top))
        18px
        max(24px, env(safe-area-inset-bottom));
}

.gh-auth-card {
    width: 100%;
    max-width: 440px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 24px;

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

    box-shadow:
        0 24px 70px rgba(15,23,42,.13);
}

.gh-auth-card-wide {
    max-width: 600px;
}

.gh-auth-brand {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 30px;
}

.gh-auth-brand-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    background: var(--primary);
    color: var(--text-inverse);

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

    box-shadow:
        0 10px 25px rgba(37,99,235,.20);
}

.gh-auth-brand-copy {
    min-width: 0;
}

.gh-auth-brand-copy strong {
    display: block;

    font-size: 23px;
    line-height: .95;

    letter-spacing: -.02em;
}

.gh-auth-brand-copy strong span {
    display: block;
}

.gh-auth-brand-copy small {
    display: block;

    margin-top: 6px;

    color: var(--muted);
    font-size: 12px;
}

.gh-auth-heading {
    margin-bottom: 25px;
}

.gh-auth-eyebrow {
    display: block;

    margin-bottom: 6px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;

    text-transform: uppercase;
}

.gh-auth-heading h1 {
    margin: 0;

    font-size: clamp(27px, 6vw, 34px);
    line-height: 1.08;

    letter-spacing: -.03em;
}

.gh-auth-heading p {
    margin: 10px 0 0;

    color: var(--muted);

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

.gh-auth-alert {
    margin-bottom: 20px;
    padding: 12px 14px;

    border: 1px solid rgba(220,38,38,.25);
    border-radius: 12px;

    background: rgba(254,226,226,.7);
    color: #991b1b;

    font-size: 14px;
    font-weight: 700;
}

.gh-auth-form {
    display: grid;

    gap: 18px;
}

.gh-auth-field {
    display: grid;

    gap: 7px;
}

.gh-auth-field label {
    color: var(--text-strong);

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

.gh-auth-field input {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    border: 1px solid var(--border-strong);
    border-radius: 13px;

    background: #ffffff;
    color: var(--text-strong);

    font: inherit;
    font-size: 16px;

    outline: none;

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

.gh-auth-field input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37,99,235,.11);
}

.gh-auth-primary-action {
    width: 100%;
    min-height: 52px;

    margin-top: 4px;

    border: 0;
    border-radius: 13px;

    background: var(--primary);
    color: var(--text-inverse);

    font: inherit;
    font-size: 16px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 12px 25px rgba(37,99,235,.20);
}

.gh-auth-primary-action:active {
    transform: translateY(1px);
}

.gh-auth-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 26px;

    color: var(--muted);

    font-size: 11px;
}


/* ==========================================================
   Hotel choice
========================================================== */

.gh-hotel-choice-list {
    display: grid;

    gap: 12px;
}

.gh-hotel-choice-form {
    margin: 0;
}

.gh-hotel-choice-card {
    width: 100%;
    min-height: 78px;

    display: grid;
    grid-template-columns: 48px minmax(0,1fr) 28px;
    align-items: center;

    gap: 14px;

    padding: 13px 15px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: #ffffff;
    color: var(--text-strong);

    text-align: left;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(15,23,42,.04);

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.gh-hotel-choice-card:hover {
    border-color: var(--primary);

    box-shadow:
        0 12px 28px rgba(15,23,42,.08);

    transform: translateY(-1px);
}

.gh-hotel-choice-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--primary-soft);

    font-size: 23px;
}

.gh-hotel-choice-copy {
    min-width: 0;
}

.gh-hotel-choice-copy strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

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

.gh-hotel-choice-copy small {
    display: block;

    margin-top: 5px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--muted);

    font-size: 12px;
}

.gh-hotel-choice-arrow {
    justify-self: end;

    color: var(--primary);

    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.gh-auth-secondary-action {
    margin-top: 22px;

    text-align: center;
}

.gh-auth-secondary-action a {
    color: var(--muted);

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

    text-decoration: none;
}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 600px) {

    .gh-auth-page {
        align-items: flex-start;

        padding:
            max(18px, env(safe-area-inset-top))
            12px
            max(22px, env(safe-area-inset-bottom));
    }

    .gh-auth-card {
        margin-top: 3vh;

        padding: 22px 18px;

        border-radius: 20px;
    }

    .gh-auth-brand {
        margin-bottom: 25px;
    }

    .gh-auth-brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;

        border-radius: 14px;
    }

    .gh-auth-brand-copy strong {
        font-size: 21px;
    }

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

    .gh-hotel-choice-card {
        min-height: 76px;

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

        gap: 11px;

        padding: 12px;
    }

    .gh-hotel-choice-icon {
        width: 42px;
        height: 42px;

        font-size: 21px;
    }

}


/* Smartphone stretti */
@media (max-width: 380px) {

    .gh-auth-card {
        padding-left: 15px;
        padding-right: 15px;
    }

    .gh-auth-brand-copy small {
        font-size: 11px;
    }

    .gh-hotel-choice-copy strong {
        font-size: 15px;
    }

}
