/* ============================================
   ?? DISEÑO MODERNO PARA REGISTRO - LAYOUT COMPLETO
   ============================================ */
:root {
    --registro-purple: #7c3aed;
    --registro-purple-dark: #6d28d9;
    --registro-purple-light: #a78bfa;
    --registro-white: #ffffff;
    --registro-gray: #64748b;
    --registro-gray-light: #94a3b8;
    --registro-border: #e2e8f0;
    --registro-bg-purple: #9333ea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   ?? CONTENEDOR PRINCIPAL - LAYOUT DE 2 COLUMNAS
   ============================================ */
#registro-page-wrapper {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
    height: 100%;
}

/* ============================================
   ?? COLUMNA IZQUIERDA - FONDO MORADO CON LOGO
   ============================================ */
#registro-left-section {
    background: linear-gradient(135deg, #a855f7 0%, var(--registro-bg-purple) 50%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

/* Formas decorativas de fondo */
#registro-left-section::before,
#registro-left-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floatRegistro 20s ease-in-out infinite;
}

#registro-left-section::before {
    width: 350px;
    height: 350px;
    top: -15%;
    left: -10%;
}

#registro-left-section::after {
    width: 280px;
    height: 280px;
    bottom: -12%;
    right: -8%;
    animation-delay: 10s;
}

@keyframes floatRegistro {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

#registro-logo-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

#registro-logo-iei {
    margin-bottom: 2rem;
}

#registro-iei-text {
    font-size: 9rem;
    font-weight: 900;
    color: white;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.15em;
    text-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2);
    animation: logoFloatRegistro 3s ease-in-out infinite;
}

#registro-iei-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 1.5rem 0 0.5rem 0;
    letter-spacing: 0.1em;
}

#registro-iei-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    letter-spacing: 0.05em;
}

@keyframes logoFloatRegistro {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Decoraciones */
.registro-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.registro-decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.registro-decoration-circle-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 10%;
    animation: pulseRegistro 4s ease-in-out infinite;
}

.registro-decoration-circle-2 {
    width: 70px;
    height: 70px;
    bottom: 25%;
    left: 12%;
    animation: pulseRegistro 4s ease-in-out infinite 1.5s;
}

.registro-decoration-circle-3 {
    width: 50px;
    height: 50px;
    top: 60%;
    right: 20%;
    animation: pulseRegistro 4s ease-in-out infinite 3s;
}

@keyframes pulseRegistro {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.3); opacity: 0.3; }
}

.registro-decoration-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(255, 255, 255, 0.1);
}

.registro-decoration-shape-1 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 35%;
    animation: rotateRegistro 25s linear infinite;
}

@keyframes rotateRegistro {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   ?? COLUMNA DERECHA - FORMULARIO CON FONDO BLANCO
   ============================================ */
#registro-right-section {
    background: var(--registro-white);
    padding: 2.5rem 4rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Scrollbar personalizada */
#registro-right-section::-webkit-scrollbar {
    width: 8px;
}

#registro-right-section::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#registro-right-section::-webkit-scrollbar-thumb {
    background: var(--registro-purple);
    border-radius: 10px;
}

#registro-right-section::-webkit-scrollbar-thumb:hover {
    background: var(--registro-purple-dark);
}

/* Botón de volver */
#registro-action-buttons {
    margin-bottom: 1.5rem;
}

.registro-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--registro-gray);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.registro-back-link:hover {
    color: var(--registro-purple);
    gap: 0.75rem;
}

/* ============================================
   ?? CONTENEDOR DEL FORMULARIO
   ============================================ */
#registro-form-container {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
}

#registro-header {
    margin-bottom: 2rem;
    text-align: center;
}

#registro-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

#registro-subtitle {
    font-size: 1rem;
    color: var(--registro-gray);
    margin: 0;
}

/* ============================================
   ?? FORMULARIO
   ============================================ */
#registro-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.registro-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.registro-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.registro-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--registro-gray);
}

.registro-label-icon {
    width: 18px;
    height: 18px;
    color: var(--registro-purple);
    flex-shrink: 0;
}

.registro-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--registro-border);
    border-radius: 0.75rem;
    background: var(--registro-white);
    color: #1e293b;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.registro-input:focus {
    border-color: var(--registro-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.registro-input::placeholder {
    color: var(--registro-gray-light);
}

/* ============================================
   ?? MENSAJES DE VALIDACIÓN
   ============================================ */
.registro-validation {
    display: block;
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* ============================================
   ?? BOTONES
   ============================================ */
.registro-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--registro-border);
}

.registro-btn-primary,
.registro-btn-secondary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.registro-btn-primary {
    color: white;
    background: var(--registro-purple);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.registro-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    background: var(--registro-purple-dark);
}

.registro-btn-secondary {
    color: var(--registro-gray);
    background: #f1f5f9;
    border: 2px solid var(--registro-border);
}

.registro-btn-secondary:hover {
    background: #e2e8f0;
    border-color: var(--registro-gray-light);
    color: var(--registro-gray);
    text-decoration: none;
}

.registro-btn-primary:active,
.registro-btn-secondary:active {
    transform: translateY(0);
}

/* ============================================
   ?? RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1200px) {
    #registro-page-wrapper {
        grid-template-columns: 40% 60%;
    }

    #registro-iei-text {
        font-size: 7rem;
    }

    #registro-right-section {
        padding: 2rem 3rem;
    }
}

/* Tablets pequeñas */
@media (max-width: 992px) {
    #registro-page-wrapper {
        grid-template-columns: 1fr;
    }

    /* Ocultar completamente la columna izquierda en tablets */
    #registro-left-section {
        display: none;
    }

    #registro-right-section {
        padding: 2.5rem 2rem;
    }

    #registro-form-container {
        max-width: 600px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    #registro-right-section {
        padding: 2rem 1.5rem;
    }

    #registro-title {
        font-size: 1.75rem;
    }

    #registro-subtitle {
        font-size: 0.9375rem;
    }

    .registro-form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .registro-form-actions {
        grid-template-columns: 1fr;
    }

    .registro-btn-primary,
    .registro-btn-secondary {
        width: 100%;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    #registro-right-section {
        padding: 1.5rem 1rem;
    }

    #registro-title {
        font-size: 1.5rem;
    }

    #registro-subtitle {
        font-size: 0.875rem;
    }

    #registro-header {
        margin-bottom: 1.5rem;
    }

    #registro-form {
        gap: 1rem;
    }

    .registro-label {
        font-size: 0.875rem;
    }

    .registro-label-icon {
        width: 16px;
        height: 16px;
    }

    .registro-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }

    .registro-btn-primary,
    .registro-btn-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }

    .registro-back-link {
        font-size: 0.875rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    #registro-right-section {
        padding: 1rem 0.75rem;
    }

    #registro-title {
        font-size: 1.25rem;
    }

    .registro-input {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   ? OPTIMIZACIONES Y ANIMACIONES
   ============================================ */
#registro-iei-text,
.registro-btn-primary,
.registro-back-link {
    will-change: transform;
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   ?? ESTILOS ADICIONALES PARA SELECT
   ============================================ */
.registro-input[type="select"],
select.registro-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237c3aed' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Estados de carga y disabled */
.registro-input:disabled,
.registro-btn-primary:disabled,
.registro-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
