/* ==========================================
 * REGISTER PAGE (register.html)
 * ==========================================
 */
:root {
    --primary: #1F4FFF;
    --cta: #FF8A00;
    --cta-hover: #e57c00;
    --text-dark: #0f172a;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body { 
    background-color: var(--bg-light); 
    display: flex; 
    justify-content: center;
    align-items: center; 
    min-height: 100vh; 
    flex-direction: column; 
    padding: 20px;
    font-family: 'Inter', sans-serif; 
    text-align: center; 
}

h2 { 
    color: var(--text-dark); 
    margin-bottom: 0.5rem;
    font-size: 2rem; 
    font-weight: 800; 
}

/* Textos informativos y enlaces */
.auth-subtitle {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 1rem;
}

.login-prompt {
    font-size: 0.95rem;
    margin-top: 25px;
    color: #64748b;
}

.login-link {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.login-link:hover {
    text-decoration: underline;
}

/* Formulario Principal */
form { 
    background: var(--white); 
    padding: 2.5rem; 
    border-radius: var(--radius);
    box-shadow: var(--shadow-md); 
    width: 100%; 
    max-width: 600px; /* Ampliado para soportar dos columnas */
    border: 1px solid var(--border);
    margin: 1rem auto; 
    position: relative; 
    overflow: hidden; 
}

/* Barra superior decorativa */
form::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--cta)); 
}

/* Estructura de Cuadrícula (Grid) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px; /* Espacio horizontal entre columnas */
}

.form-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

/* Inputs y Selects */
form input, 
form select { 
    width: 100%; 
    padding: 0.9rem 1rem; 
    border: 1px solid var(--border);
    border-radius: 8px; 
    font-size: 0.95rem; 
    transition: all 0.3s; 
    background-color: var(--bg-light);
    box-sizing: border-box;
    font-family: inherit;
    color: var(--text-dark);
}

form select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
}

form input:focus,
form select:focus { 
    border-color: var(--cta); 
    background: var(--white);
    outline: none; 
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1); 
}

/* Botón de envío */
form button { 
    width: 100%; 
    padding: 1rem; 
    background-color: var(--cta); 
    color: var(--white);
    border: none; 
    border-radius: 8px; 
    font-size: 1rem; 
    font-weight: 700; 
    cursor: pointer;
    transition: 0.3s; 
    text-transform: uppercase; 
    margin-top: 10px;
}

form button:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.2); 
}

form button:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Adaptabilidad a celulares */
@media (max-width: 600px) {
    .form-grid { 
        grid-template-columns: 1fr; 
    }
    .form-full { 
        grid-column: span 1; 
    }
    form {
        padding: 1.5rem;
    }
}