/* Colorful popup overlay and dialog */
.auth-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-popup {
    max-width: 520px;
    width: calc(100% - 40px);
    background: linear-gradient(135deg, #ff7eb3 0%, #ff758c 30%, #fad0c4 100%);
    color: #1a1a1a;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: popup-in 180ms ease-out;
}

.auth-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.25);
}

.auth-popup-title {
    font-weight: 700;
    font-size: 16px;
}

.auth-popup-close {
    appearance: none;
    border: none;
    background: rgba(0,0,0,0.15);
    color: #000;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-popup-body {
    padding: 18px 16px 20px;
    background: #fff;
}

.auth-popup-message {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.auth-popup-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 16px 16px;
    background: #fff;
}

.auth-popup-button {
    appearance: none;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}

.auth-popup-button.primary {
    background: #2563eb;
    color: #fff;
}

.auth-popup-button.secondary {
    background: #e5e7eb;
    color: #111827;
}

@keyframes popup-in {
    from { transform: translateY(6px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}