/* Biscayne Booking - Authentication Modal Styles */

/* Modal Overlay */
.biscayne-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.biscayne-modal.active {
    opacity: 1;
    visibility: visible;
}

.biscayne-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Modal Container */
.biscayne-modal-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Content */
.biscayne-modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.biscayne-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.biscayne-modal-close:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.auth-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: #007cba;
}

.auth-tab.active {
    color: #007cba;
    border-bottom-color: #007cba;
}

/* Auth Form Container */
.auth-form-container {
    display: none;
}

.auth-form-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-container h2 {
    font-size: 28px;
    margin: 0 0 8px 0;
    color: #1f2937;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0 0 25px 0;
    color: #6b7280;
    font-size: 15px;
}

/* Form Styles */
.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.auth-form .form-group input[type="text"],
.auth-form .form-group input[type="email"],
.auth-form .form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.auth-form .form-group small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}

.auth-form .form-group-checkbox {
    margin-bottom: 20px;
}

.auth-form .form-group-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}

.auth-form .form-group-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* Form Message */
.auth-form .form-message {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.auth-form .form-message.success {
    display: block;
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.auth-form .form-message.error {
    display: block;
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-submit-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.auth-submit-btn.loading::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Auth Footer */
.auth-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

.auth-footer a {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .biscayne-modal-container {
        width: 95%;
    }
    
    .biscayne-modal-content {
        padding: 30px 20px;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar for Modal */
.biscayne-modal-container::-webkit-scrollbar {
    width: 8px;
}

.biscayne-modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.biscayne-modal-container::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 10px;
}

.biscayne-modal-container::-webkit-scrollbar-thumb:hover {
    background: #005a87;
}

/* Prevent body scroll when modal is open */
body.biscayne-modal-open {
    overflow: hidden;
}

