/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Container */
.modal-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #32325d;
}

/* Modal Header */
.modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #32325d;
    margin: 0 0 8px 0;
}

.modal-header h2 i {
    color: #3b9dd8;
    margin-right: 8px;
}

.modal-header p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Modal Body */
.modal-body {
    padding: 30px;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.modal-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.modal-footer a {
    color: #3b9dd8;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.modal-footer a:hover {
    color: #2d8bc7;
    text-decoration: underline;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #32325d;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Kumbh Sans', sans-serif;
    color: #32325d;
}

.form-control:focus {
    outline: none;
    border-color: #3b9dd8;
    box-shadow: 0 0 0 3px rgba(59, 157, 216, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Password Toggle */
.password-toggle {
    position: relative;
}

.password-toggle .form-control {
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
}

.password-toggle-btn:hover {
    color: #32325d;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.form-check label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #3b9dd8;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Kumbh Sans', sans-serif;
}

.btn-primary:hover {
    background: #2d8bc7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 157, 216, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

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

.alert-error,
.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Modal Links */
.modal-link {
    color: #3b9dd8;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.modal-link:hover {
    color: #2d8bc7;
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 15px;
}

.mb-0 {
    margin-bottom: 0;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.strength-weak .password-strength-fill {
    width: 33%;
    background: #dc3545;
}

.strength-medium .password-strength-fill {
    width: 66%;
    background: #ffc107;
}

.strength-strong .password-strength-fill {
    width: 100%;
    background: #28a745;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ÁSZF Elfogadás Checkbox */
.aszf-acceptance {
    margin: 25px 0 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.aszf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.aszf-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: #667eea;
}

.aszf-text {
    color: #495057;
    flex: 1;
}

.aszf-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.aszf-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 98%;
        border-radius: 8px;
    }
    
    .modal-close {
        width: 48px;
        height: 48px;
    }
    
    .modal-header {
        padding: 25px 20px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-header {
        padding: 25px 20px 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
}
