/* =============================================================
   Auth Tiger v3.7.0 — Popup CSS
   ============================================================= */

/* ── Overlay ── */
.authtiger-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: overlayFade 0.28s ease forwards;
}

@keyframes overlayFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.authtiger-popup-overlay.active {
    display: block;
}

/* ── Container ── */
.authtiger-popup-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    box-sizing: border-box;
}

.authtiger-popup-container.active {
    display: flex;
}

/* ── Popup box ── */
.authtiger-popup-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--atg-card, #fff);
    border: 1px solid var(--atg-card-border, rgba(0, 0, 0, 0.08));
    border-radius: var(--atg-r, 20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: popupSlide 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glass blur themes */
.authtiger-popup-content {
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

/* ── Close button ── */
.authtiger-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #777;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.authtiger-popup-close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333;
    transform: scale(1.1);
}

/* ── Inner form area ── */
.authtiger-popup-content .unified-auth-wrapper,
.authtiger-popup-content .authtiger-wrapper {
    min-height: auto !important;
    padding: 32px 28px !important;
    background: transparent !important;
}

/* Force single-column inside popup (no banner) */
.authtiger-popup-content .split-auth-layout,
.authtiger-popup-content .authtiger-glass-card {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    animation: none !important;
    flex-direction: column !important;
}

.authtiger-popup-content .split-left-banner {
    display: none !important;
}

.authtiger-popup-content .split-right-panel {
    padding: 0 !important;
    width: 100% !important;
    flex: unset !important;
}

.authtiger-popup-content .unified-auth-card {
    max-width: 100%;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .authtiger-popup-content {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 92vh;
        animation: popupSlideUp 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .authtiger-popup-container {
        align-items: flex-end;
        padding: 0;
    }

    .authtiger-popup-content .unified-auth-wrapper,
    .authtiger-popup-content .authtiger-wrapper {
        padding: 28px 20px 32px !important;
    }
}

@keyframes popupSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}