/* ========================================= */
/* ===== ESTILOS DE FORMULARIOS (DARK MODE - CENTRADO CORREGIDO) ===== */
/* ========================================= */

/* --- Contenedor Principal Centrado --- */
.page-form-single-card {
    /* ¡OJO AQUÍ! Usamos !important para obligar a que se centre */
    display: flex !important; 
    justify-content: center;
    align-items: center;
    min-height: 80vh; 
    padding: 40px 20px;
    width: 100%; /* Asegura que tome todo el ancho */
}

/* --- La Tarjeta Grande (Caja contenedora) --- */
.form-outer-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: #1E1E1E; 
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    overflow: hidden; 
    border: 1px solid #333;
    /* Margen automático por si acaso falla el flex */
    margin: 0 auto; 
}

/* --- Panel Izquierdo (El Formulario) --- */
.form-inner-panel-left {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo pequeño arriba del formulario */
.logo-form img {
    height: 60px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.form-inner-panel-left h3 {
    text-align: center;
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-subheading {
    text-align: center;
    color: #cccccc;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* --- Inputs y Grupos (Cajas de texto) --- */
.form-group-icon {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700; 
    font-size: 1.1rem;
}

/* Estilo de los inputs */
.form-group-icon input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px 12px 45px; 
    background-color: #2D2D2D !important;
    border: 1px solid #444;
    border-radius: 8px !important;
    color: #fff !important; 
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Textarea (Mensaje) sin icono */
.form-group textarea {
    padding: 15px;
    height: 120px;
    resize: none;
}

.form-group-icon input:focus,
.form-group textarea:focus {
    border-color: #FFD700; 
    background-color: #333 !important;
    outline: none;
}

/* --- Botones --- */
.btn-primary-split {
    display: block;
    width: 100%;
    background-color: #FFD700; 
    color: #000; 
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
    text-decoration: none; 
}

.btn-primary-split:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    background-color: #e5c100; 
}

/* --- Enlaces de "Regístrate aquí" --- */
.form-toggle-split {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

.form-toggle-split a {
    color: #FFD700;
    font-weight: bold;
}

/* ========================================================= */
/* === PANEL DERECHO (DARK/GOLD) === */
/* ========================================================= */
.form-inner-panel-right {
    flex: 1;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: #fff;
    border-left: 1px solid #333; 
    position: relative;
}

.form-inner-panel-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hello-wave {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: wave 2s infinite;
}

.form-inner-panel-right h2 {
    font-size: 2.5rem;
    color: #FFD700; 
    margin-bottom: 15px;
}

.form-inner-panel-right p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 300px;
    line-height: 1.6;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* --- Responsive (Celulares) --- */
@media (max-width: 768px) {
    .form-outer-card {
        flex-direction: column; 
    }
    .form-inner-panel-right {
        padding: 30px 20px;
        order: -1; 
        border-left: none;
        border-bottom: 1px solid #333;
    }
}