/* ========================================
   REGISTER PAGE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #F3F2F7 0%, #EEEAFC 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(90, 62, 138, 0.15);
    padding: 3rem;
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8F64C0, #5a3e8a, #83D98B);
}

.logo-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-section img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.register-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5a3e8a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.register-subtitle {
    color: #6b6f7a;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Layout de 2 columnas */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 0;
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #5a3e8a;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2d3a4b;
}

.form-input:focus {
    outline: none;
    border-color: #8F64C0;
    background: white;
    box-shadow: 0 0 0 4px rgba(143, 100, 192, 0.1);
}

.form-input::placeholder {
    color: #8da1b2;
}

.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2d3a4b;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #8F64C0;
    background: white;
    box-shadow: 0 0 0 4px rgba(143, 100, 192, 0.1);
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border: 2px dashed #8F64C0;
    border-radius: 12px;
    background: rgba(143, 100, 192, 0.05);
    color: #8F64C0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.file-upload-label:hover {
    background: rgba(143, 100, 192, 0.1);
    border-color: #5a3e8a;
}

.file-upload-label i {
    font-size: 1.2rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
    grid-column: 1 / -1;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    accent-color: #8F64C0;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    color: #6b6f7a;
    line-height: 1.4;
}

.checkbox-group a {
    color: #8F64C0;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8F64C0 0%, #5a3e8a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    grid-column: 1 / -1;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(143, 100, 192, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-links {
    text-align: center;
    color: #6b6f7a;
    grid-column: 1 / -1;
}

.login-links a {
    color: #8F64C0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #5a3e8a;
}

.login-links p {
    margin-bottom: 0.5rem;
}

.error-message {
    background: #fee;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #c53030;
    display: none;
    grid-column: 1 / -1;
}

.success-message {
    background: #f0fff4;
    color: #2f855a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #2f855a;
    display: none;
    grid-column: 1 / -1;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a3e8a;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b6f7a;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f1f5f9;
    color: #5a3e8a;
}

.modal-body {
    line-height: 1.6;
    color: #4a5568;
}

.modal-body h4 {
    color: #5a3e8a;
    margin: 1rem 0 0.5rem 0;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f1f5f9;
}

.accept-terms-btn {
    background: linear-gradient(135deg, #8F64C0 0%, #5a3e8a 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-terms-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(143, 100, 192, 0.4);
}

/* Responsive Design */
@media (max-width: 900px) {
    .register-container {
        max-width: 700px;
        padding: 2.5rem;
    }
    
    .form-row {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .register-container {
        padding: 2rem;
        margin: 1rem;
        max-width: 600px;
    }
    
    .register-title {
        font-size: 2rem;
    }
    
    /* Cambiar a 1 columna en móvil */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group.full-width {
        margin-bottom: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .register-title {
        font-size: 1.75rem;
    }
    
    .form-input, .form-select {
        padding: 0.875rem 1rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .logo-section img {
        width: 100px;
    }
}