/* =========================================
   RESET & VARIABLES
   ========================================= */
:root {
    --neon-cyan: #3fffe0;
    --neon-hover: #00ffd6;
    --dark-bg: #373636;      /* Fondo de la pantalla */
    --card-bg: #141414;      /* Fondo de la tarjeta del form */
    --input-bg: #ffffff;     /* Fondo de los inputs */
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --border-color: #333;
}

/* Aseguramos que todo mida bien */
.registration-wrapper * {
    box-sizing: border-box;
}

/* =========================================
   CONTENEDOR PRINCIPAL (FONDO PANTALLA)
   ========================================= */
.registration-wrapper {
    background-color: var(--dark-bg); /* Forzamos fondo negro */
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10; /* Asegura que tape el fondo blanco base */
}

/* Formas decorativas de fondo (Glow) */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.15;
}
.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--neon-cyan);
    top: -50px;
    left: -50px;
}
.shape-2 {
    width: 400px;
    height: 400px;
    background: #ffffff;
    bottom: -100px;
    right: -100px;
}

/* =========================================
   TARJETA DEL FORMULARIO
   ========================================= */
.registration-container {
    background-color: var(--dark-bg);
    width: 100%;
    max-width: 800px; /* Un poco más ancho */
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
    color: var(--text-main);
}

/* =========================================
   HEADER & TEXTOS
   ========================================= */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-icon {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
}

.form-header h1 {
    color: var(--text-main);
    font-size: 2.2rem;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}

.form-header p {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 1.1rem;
}

/* =========================================
   INPUTS Y ESTRUCTURA (SOLUCIÓN AL ERROR VISUAL)
   ========================================= */
.form-block {
    margin-bottom: 35px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.block-title {
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* GRID SYSTEM */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 100%; /* Forzar ancho completo */
}

.input-group.full-width {
    grid-column: span 2;
}

.input-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
    display: block;
}

/* CAJA DEL INPUT (SOLUCIÓN CAJITAS PEQUEÑAS) */
.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 15px; /* Padding lateral interno */
    height: 50px;
    width: 100%;
    transition: all 0.3s ease;
}

/* Iconos dentro del input */
.input-wrapper i {
    color: #666;
    font-size: 1.1rem;
    margin-right: 12px;
    min-width: 20px;
    text-align: center;
}

/* El campo de texto real */
.input-wrapper input,
.input-wrapper select {
    background: transparent;
    border: none;
    color: #373636;
    font-size: 1rem;
    width: 100%;
    height: 100%;
    outline: none;
}

/* Ajuste específico para textarea */
.input-wrapper.textarea-wrapper {
    height: auto; /* Altura automática */
    padding: 15px;
    align-items: flex-start;
}

.input-wrapper textarea {
    background: transparent;
    border: none;
    color: #373636;
    width: 100%;
    resize: vertical;
    outline: none;
    font-family: inherit;
    min-height: 80px;
}

/* Efecto Focus */
.input-wrapper:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(63, 255, 224, 0.2);
}
.input-wrapper:focus-within i {
    color: var(--neon-cyan);
}

/* =========================================
   BOTÓN Y EXTRAS
   ========================================= */
.btn-neon {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    background: var(--neon-cyan);
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-neon:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: translateY(-2px);
}

/* Checkbox legal */
.legal-block {
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.legal-block a {
    color: var(--neon-cyan);
    text-decoration: underline;
}

.legal-block input {
    margin-top: 4px;
    accent-color: var(--neon-cyan);
    width: 18px;
    height: 18px;
}

/* =========================================
   RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .registration-container {
        padding: 30px 20px;
    }

    .input-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        gap: 15px;
    }

    .input-group.full-width {
        grid-column: span 1;
    }
}
