/* ============================================
   AUTH MODALS STYLING
   Consistent met contact modal design
   ============================================ */

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-overlay.active {
    display: flex !important;
}

.auth-modal-overlay .modal-content {
    background: #2c3e50;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-overlay .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-overlay .modal-header h2 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.auth-modal-overlay .modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.auth-modal-overlay .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Form Styling */
.auth-form {
    padding: 30px;
}

.auth-form .form-intro {
    color: #bdc3c7;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 8px;
    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;
    background: #34495e;
    border: 2px solid #34495e;
    border-radius: 8px;
    color: #ecf0f1;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.auth-form .form-group input::placeholder {
    color: #7f8c8d;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #2c3e50;
}

.auth-form .field-hint {
    display: block;
    color: #95a5a6;
    font-size: 13px;
    margin-top: 6px;
}

.auth-form .checkbox-group {
    margin-bottom: 20px;
}

.auth-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    color: #bdc3c7;
}

.auth-form .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-form .checkbox-group a {
    color: #3498db;
    text-decoration: none;
}

.auth-form .checkbox-group a:hover {
    text-decoration: underline;
}

/* Modal Actions */
.auth-form .modal-actions {
    margin-top: 25px;
}

.auth-form .button-primary {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.auth-form .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.auth-form .button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Links */
.auth-form .form-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form .form-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.auth-form .form-links a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.auth-form .form-links strong {
    color: #667eea;
}

/* Form Messages */
.auth-form .form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.auth-form .form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-form .form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.auth-form .button-loading {
    display: none;
}

.auth-form .button-primary.loading .button-text {
    display: none;
}

.auth-form .button-primary.loading .button-loading {
    display: inline;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-modal-overlay {
        padding: 10px;
    }
    
    .auth-modal-overlay .modal-content {
        max-width: 100%;
    }
    
    .auth-modal-overlay .modal-header {
        padding: 20px;
    }
    
    .auth-modal-overlay .modal-header h2 {
        font-size: 18px;
    }
    
    .auth-form {
        padding: 20px;
    }
}
