/* =========================================================================
 * Log in / Sign up modal shown from the header "Log in" link (2026-08)
 * Mirrors the .fs-welcome-modal open/close pattern in fs-header-region.css.
 * ========================================================================= */

.fs-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    padding: 16px;
}

.fs-auth-modal.is-open {
    opacity: 1;
    visibility: visible;
}

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

.fs-auth-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 40, .55);
}

.fs-auth-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.fs-auth-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8A8F9B;
    line-height: 0;
}

.fs-auth-modal__title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 28px;
    padding: 0 20px;
}

.fs-auth-modal__tabs {
    display: flex;
    border: 1px solid var(--fs-border, #D6D6D6);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 28px;
}

.fs-auth-modal__tab {
    flex: 1;
    border: none;
    background: #fff;
    color: var(--fs-text, #222222);
    font-weight: 600;
    font-size: 15px;
    padding: 14px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.fs-auth-modal__tab.is-active {
    background: var(--accents-4, #0F9A60);
    color: #fff;
}

.fs-auth-modal__panel {
    display: none;
}

.fs-auth-modal__panel.is-active {
    display: block;
}

.fs-auth-modal__panel .fs-account-title {
    font-size: 26px;
    margin-bottom: 6px;
}

.fs-auth-modal__panel .fs-account-subtitle {
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .fs-auth-modal__dialog {
        padding: 28px 20px;
    }

    .fs-auth-modal__title {
        font-size: 20px;
    }
}
