/* css/user_register.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.user-register-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.user-register-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.user-register-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.user-register-header p {
    opacity: 0.9;
    font-size: 14px;
}

.user-register-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control.error {
    border-color: #ff4757;
}

.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.password-strength {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: #ff4757;
    transition: width 0.3s ease;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 38px;
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    cursor: pointer;
}

.age-verification {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.age-verification h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-verification h3 i {
    color: #667eea;
}

.age-verification .verification-methods {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.age-verification .method {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.age-verification .method input {
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.user-register-footer {
    text-align: center;
    padding: 20px 40px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.user-register-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.user-register-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Upload de photo de profil */
.profile-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.profile-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #667eea;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    background: #f8f9fa;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 40px;
}

.profile-preview .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 71, 87, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.profile-preview:hover .remove-photo {
    display: flex;
}

.upload-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.upload-btn input[type="file"] {
    display: none;
}

.file-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.age-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-warning i {
    font-size: 18px;
}

@media (max-width: 576px) {
    .user-register-container {
        border-radius: 10px;
    }
    
    .user-register-form {
        padding: 30px 20px;
    }
    
    .user-register-header {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 25px;
    }
    
    .age-verification .verification-methods {
        flex-direction: column;
        gap: 10px;
    }
}