/**
 * Auth Overlay - mapa dostępna tylko po zalogowaniu.
 * Przykrywa całą mapę blurem i pokazuje okno logowania/rejestracji.
 */

.lae-auth-overlay {
    position: absolute;
    inset: 0;
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.lae-auth-modal {
    width: 100%;
    max-width: 440px;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    background: linear-gradient(160deg, rgba(10, 20, 18, 0.92) 0%, rgba(16, 12, 32, 0.92) 100%);
    border: 1px solid rgba(65, 255, 210, 0.4);
    border-radius: 16px;
    padding: 28px 26px 24px;
    box-shadow: 0 0 60px rgba(65, 255, 210, 0.12);
}

.lae-auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.lae-auth-logo {
    display: block;
    width: auto;
    height: 72px;
    margin: 0 auto 16px;
}

.lae-auth-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

/* ─── Zakładki ─────────────────────────────────────────────── */

.lae-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(65, 255, 210, 0.2);
}

/* Twarde resety z !important - motyw (Be Theme) nadaje przyciskom
   własne tło/border-radius/box-shadow, także na :hover. */
.lae-auth-tabs .lae-auth-tab,
.lae-auth-tabs .lae-auth-tab:hover,
.lae-auth-tabs .lae-auth-tab:focus,
.lae-auth-tabs .lae-auth-tab:active {
    appearance: none;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none;
    margin: 0;
    min-height: 0;
    line-height: 1.2;
}

.lae-auth-tabs .lae-auth-tab {
    flex: 1;
    border-bottom: 2px solid transparent !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 4px 12px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lae-auth-tabs .lae-auth-tab:hover {
    color: #fff !important;
}

.lae-auth-tabs .lae-auth-tab.is-active {
    color: #41FFD2 !important;
    border-bottom: 2px solid #41FFD2 !important;
}

/* ─── Panele formularzy ────────────────────────────────────── */

/* Formularze logowania są projektowane jako samodzielne strony (własny
   padding wrapa i kontenera, wyśrodkowanie flexem). W modalu to daje wielką
   pustą przestrzeń - zerujemy z !important, bo dark-owe reguły mają równą
   lub wyższą specyficzność. */
.lae-auth-panel .liveage-login-wrap,
.lae-auth-panel .liveage-login-wrap.liveage-login-dark {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.lae-auth-panel .liveage-login-form-container,
.lae-auth-panel .liveage-login-dark .liveage-login-form-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.lae-auth-panel .liveage-login-title {
    display: none;
}

.lae-auth-fallback {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin: 0;
}

.lae-auth-fallback a {
    color: #41FFD2;
    font-weight: 700;
    text-decoration: none;
}

.lae-auth-fallback a:hover {
    color: #fff;
}

/* ─── Mobile ───────────────────────────────────────────────── */

@media (max-width: 768px) {
    .lae-auth-overlay {
        padding: 12px;
        align-items: flex-start;
    }

    .lae-auth-modal {
        margin-top: 8vh;
        max-height: calc(100% - 8vh - 12px);
        padding: 22px 18px 20px;
    }

    .lae-auth-eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }
}

.lae-pending-modal {
    text-align: center;
    max-width: 460px;
}

.lae-pending-title {
    color: #41FFD2;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.lae-pending-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.lae-pending-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lae-pending-btn {
    background: #41FFD2;
    border: 1px solid #41FFD2;
    border-radius: 4px;
    color: #071b1b;
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 18px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.lae-pending-btn:hover,
.lae-pending-btn:focus {
    color: #071b1b;
    opacity: 0.85;
}

.lae-pending-btn-secondary {
    background: transparent;
    border-color: rgba(65, 255, 210, 0.4);
    color: #41FFD2;
}

.lae-pending-btn-secondary:hover,
.lae-pending-btn-secondary:focus {
    border-color: #41FFD2;
    color: #41FFD2;
}
