/* ============================================================
   REISENBOOKING — CUSTOMER AUTHENTICATION
   Shared by index, search results, hotel and booking pages.
   ============================================================ */

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

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

    padding: 24px;

    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(3px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.auth-overlay.auth-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-dialog {
    position: relative;

    width: min(100%, 430px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;

    padding: 30px;

    background: #fff;
    border-radius: 18px;

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

    transform: translateY(10px) scale(.985);

    transition: transform .18s ease;
}

.auth-overlay.auth-open .auth-dialog {
    transform: translateY(0) scale(1);
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;

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

    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    background: #f4f6f8;
    color: #445064;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.auth-close:hover {
    background: #e9edf2;
}

.auth-brand {
    margin-bottom: 24px;
    padding-right: 38px;
}

.auth-brand-name {
    color: var(--brand-blue, #0057a8);
    font-size: 18px;
    font-weight: 800;
}

.auth-heading {
    margin: 0;

    color: #111827;

    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.auth-subheading {
    margin: 8px 0 0;

    color: #667085;

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

.auth-form {
    margin-top: 24px;
}

.auth-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.auth-field label {
    display: block;

    margin-bottom: 6px;

    color: #344054;

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

.auth-field input {
    display: block;

    width: 100%;
    box-sizing: border-box;

    padding: 12px 13px;

    border: 1px solid #d0d5dd;
    border-radius: 9px;

    background: #fff;
    color: #101828;

    font: inherit;
    font-size: 14px;

    outline: none;

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

.auth-field input:focus {
    border-color: var(--brand-blue, #0057a8);

    box-shadow:
        0 0 0 3px rgba(0, 87, 168, .10);
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    padding-right: 65px;
}

.auth-show-password {
    position: absolute;
    top: 50%;
    right: 11px;

    transform: translateY(-50%);

    border: 0;
    padding: 4px;

    background: transparent;
    color: var(--brand-blue, #0057a8);

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

    cursor: pointer;
}

.auth-forgot-row {
    display: flex;
    justify-content: flex-end;

    margin-top: -7px;
    margin-bottom: 17px;
}

.auth-text-button {
    border: 0;
    padding: 0;

    background: transparent;
    color: var(--brand-blue, #0057a8);

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

    cursor: pointer;
}

.auth-text-button:hover {
    text-decoration: underline;
}

.auth-primary-button {
    width: 100%;

    border: 0;
    border-radius: 9px;

    padding: 13px 18px;

    background: var(--brand-orange, #fb6103);
    color: #fff;

    font: inherit;
    font-size: 15px;
    font-weight: 800;

    cursor: pointer;

    transition:
        opacity .15s ease,
        transform .15s ease;
}

.auth-primary-button:hover {
    opacity: .94;
}

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

.auth-primary-button:disabled {
    opacity: .6;
    cursor: wait;
}

.auth-message {
    display: none;

    margin-bottom: 16px;
    padding: 10px 12px;

    border-radius: 8px;

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

.auth-message.auth-error {
    display: block;

    border: 1px solid #fecaca;

    background: #fef2f2;
    color: #b42318;
}

.auth-message.auth-success {
    display: block;

    border: 1px solid #bbf7d0;

    background: #f0fdf4;
    color: #166534;
}

.auth-switch {
    margin-top: 20px;

    color: #667085;

    text-align: center;
    font-size: 13px;
}

.auth-switch button {
    margin-left: 4px;

    border: 0;
    padding: 0;

    background: transparent;
    color: var(--brand-blue, #0057a8);

    font: inherit;
    font-weight: 800;

    cursor: pointer;
}

.auth-switch button:hover {
    text-decoration: underline;
}

/* ============================================================
   AUTHENTICATED HEADER
   ============================================================ */

.auth-account {
    position: relative;
}

.auth-account-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    border: 0;

    background: transparent;
    color: inherit;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

.auth-account-chevron {
    font-size: 10px;
    transition: transform .15s ease;
}

.auth-account.auth-menu-open
.auth-account-chevron {
    transform: rotate(180deg);
}

.auth-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 5000;

    display: none;

    width: 220px;

    padding: 7px;

    border: 1px solid #e4e7ec;
    border-radius: 11px;

    background: #fff;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, .14);
}

.auth-account.auth-menu-open
.auth-account-menu {
    display: block;
}

.auth-account-summary {
    padding: 9px 10px 11px;

    border-bottom: 1px solid #eef1f4;

    margin-bottom: 5px;
}

.auth-account-summary strong {
    display: block;

    color: #111827;

    font-size: 13px;
}

.auth-account-summary span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: #667085;

    font-size: 11px;

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

.auth-menu-item {
    display: block;

    width: 100%;

    border: 0;
    border-radius: 7px;

    padding: 9px 10px;

    background: transparent;
    color: #344054;

    text-align: left;

    font: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.auth-menu-item:hover {
    background: #f6f8fa;
}

.auth-menu-item.auth-signout {
    color: #b42318;
}

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

@media (max-width: 560px) {

    .auth-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .auth-dialog {
        width: 100%;
        max-height: 92vh;

        padding: 26px 20px 24px;

        border-radius: 20px 20px 0 0;
    }

    .auth-name-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-heading {
        font-size: 23px;
    }
}

/* =========================================================
   Reisenbooking Google authentication
   ========================================================= */

.auth-social {
    margin-top: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #6b7280;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    flex: 0 0 auto;
}

.auth-google-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;

    padding: 11px 16px;

    font: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

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

.auth-google-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.auth-google-button:focus-visible {
    outline: 3px solid rgba(66, 133, 244, .22);
    outline-offset: 2px;
}

.auth-google-button:disabled {
    opacity: .65;
    cursor: wait;
}

.auth-google-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

@media (max-width: 600px) {
    .auth-google-button {
        min-height: 50px;
        font-size: 16px;
    }
}
