/**
 * Auth Modal - Custom Styles for SweetAlert2 Authentication
 * IOSnack Platform
 */

/* Modal Popup */
.auth-modal-popup {
    border-radius: 1.5rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Title */
.auth-modal-title {
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* HTML Container */
.auth-modal-html {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* Confirm Button */
.auth-modal-confirm-btn {
    padding: 0.75rem 2rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3) !important;
}

.auth-modal-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4) !important;
}

/* Auth Modal Content */
.auth-modal-content {
    text-align: left;
    width: 100%;
}

/* Form Inputs - Enhanced Focus */
.auth-modal-content input[type="text"],
.auth-modal-content input[type="email"],
.auth-modal-content input[type="password"] {
    font-size: 0.95rem;
}

.auth-modal-content input[type="text"]:focus,
.auth-modal-content input[type="email"]:focus,
.auth-modal-content input[type="password"]:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Checkbox Styling */
.auth-modal-content input[type="checkbox"] {
    cursor: pointer;
}

.auth-modal-content input[type="checkbox"]:checked {
    background-color: #f97316;
    border-color: #f97316;
}

/* Links */
.auth-modal-content a {
    text-decoration: none;
    transition: all 0.2s;
}

.auth-modal-content a:hover {
    text-decoration: none;
}

/* Validation Message */
.swal2-validation-message {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
}

/* Loading State */
.swal2-loading .swal2-confirm {
    background-color: #fb923c !important;
}

/* Backdrop */
.swal2-backdrop-show {
    backdrop-filter: blur(4px);
}

/* Responsive */
@media (max-width: 640px) {
    .auth-modal-popup {
        width: 95% !important;
        margin: 0 !important;
        border-radius: 1rem !important;
    }

    .auth-modal-confirm-btn {
        width: 100% !important;
        padding: 1rem !important;
    }

    .auth-modal-content input {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

/* Custom Scrollbar for Modal */
.auth-modal-content::-webkit-scrollbar {
    width: 6px;
}

.auth-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.auth-modal-content::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 10px;
}

.auth-modal-content::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}
