/* ============================================================
   1. FUENTE Y CONFIGURACIÓN BASE
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: #2d3748;
}

/* ============================================================
   2. TARJETA DE REGISTRO
   ============================================================ */
.register-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 45px;
    max-width: 750px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.register-header {
    color: #1a365d;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 35px;
}

/* ============================================================
   3. CAMPOS DE FORMULARIO (ESTILO MODERNO)
   ============================================================ */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.15);
    outline: none;
}

/* Ojo de la contraseña */
.btn-toggle-pass {
    border: 1px solid #e2e8f0;
    border-left: none;
    background-color: #f8fafc;
    color: #a0aec0;
    border-radius: 0 12px 12px 0;
    padding-right: 15px;
}

.input-group .form-control:focus + .btn-toggle-pass {
    border-color: #3182ce;
    color: #3182ce;
}

/* ============================================================
   4. TELÉFONO (intl-tel-input Premium Look)
   ============================================================ */
.iti {
    width: 100%;
}

/* El input del teléfono */
.iti input#telefono {
    width: 100%;
    padding-left: 95px !important; /* Espacio para que el texto no pise el prefijo */
    border-radius: 12px !important;
}

/* Contenedor del prefijo/bandera */
.iti__selected-flag {
    background-color: #f1f5f9 !important; /* Fondo grisáceo sutil */
    border-right: 1px solid #e2e8f0 !important;
    border-radius: 12px 0 0 12px !important;
    padding: 0 12px 0 15px !important;
    width: 85px; /* Ancho fijo para el prefijo */
}

/* Texto del prefijo (+34) */
.iti__selected-dial-code {
    font-weight: 700;
    color: #1a365d;
    font-size: 0.9rem;
}

/* Sincronización del foco para que todo el bloque parezca uno */
.iti input#telefono:focus + .iti__flag-container .iti__selected-flag {
    border-color: #3182ce !important;
    background-color: #ffffff !important;
}

/* Lista desplegable de países */
.iti__country-list {
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    padding: 10px !important;
    margin-top: 10px !important;
    width: 300px;
}

.iti__country {
    padding: 10px 15px !important;
    border-radius: 10px;
    transition: background 0.2s;
}

.iti__country:hover {
    background-color: #edf2f7 !important;
}

/* ============================================================
   5. BOTONES Y ALERTAS
   ============================================================ */
.btn-primary-custom {
    background: #3182ce;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 4px 6px rgba(49, 130, 206, 0.2);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(49, 130, 206, 0.3);
}

.alert {
    border: none;
    border-radius: 12px;
    font-weight: 500;
}

.login-link {
    font-size: 0.9rem;
    color: #718096;
}

.login-link a {
    color: #3182ce;
    font-weight: 700;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Checkbox estilo moderno */
.form-check-input {
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #3182ce;
    border-color: #3182ce;
}