/* Signup Popup Styles */
.signup-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.signup-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.signup-popup-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.signup-popup-overlay.show .signup-popup-modal {
    transform: scale(1) translateY(0);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.popup-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.popup-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.popup-body {
    padding: 24px;
}

.popup-content {
    margin-bottom: 24px;
}

.popup-content p {
    margin: 0 0 16px 0;
    color: #4b5563;
    line-height: 1.6;
}

.popup-content p:last-child {
    margin-bottom: 0;
}

.popup-form .form-group {
    margin-bottom: 16px;
}

.popup-form .form-group:last-child {
    margin-bottom: 0;
}

.popup-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.popup-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.popup-form .btn {
    width: 100%;
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.popup-form .btn:hover {
    background: #2563eb;
}

.popup-form .btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.popup-ok-btn {
    background: #10b981 !important;
    margin-top: 16px;
}

.popup-ok-btn:hover {
    background: #059669 !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .signup-popup-modal {
        width: 95%;
        margin: 16px;
    }

    .popup-header {
        padding: 16px 20px;
    }

    .popup-body {
        padding: 20px;
    }
}

/* Animation Classes */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

.signup-popup-fade-in {
    animation: popupFadeIn 0.3s ease forwards;
}

.signup-popup-fade-out {
    animation: popupFadeOut 0.3s ease forwards;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .signup-popup-modal {
        background: #1f2937;
    }

    .popup-header {
        border-bottom-color: #374151;
    }

    .popup-header h3 {
        color: #f9fafb;
    }

    .popup-close-btn {
        color: #9ca3af;
    }

    .popup-close-btn:hover {
        background: #374151;
        color: #d1d5db;
    }

    .popup-content p {
        color: #d1d5db;
    }

    .popup-form input {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .popup-form input:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    }
}