/* ==========================================================================
   DISEÑO PREMIUM - SISTEMA DE COCHERA
   ========================================================================== */

:root {
    --primary-blue: #00214d;
    --accent-blue: #0056b3;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000 !important; /* Negro absoluto */
    padding: 0;
    margin: 0;
    overflow: hidden;
    width: 100vw;
}
.login-wrapper {
    display: flex !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    background: url('img/fondonuevo.png') no-repeat center center / cover !important;
    border: none !important;
    position: relative !important;
    z-index: 10;
}

/* ==========================================
   PANEL IZQUIERDO (TEXTO MARCA ESTILO CLUBHOUSE)
   ========================================== */
.left-panel {
    width: 60% !important;
    flex: 0 0 60% !important;
    background: transparent !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important; /* Movemos hacia arriba */
    padding: 30px 80px 80px 80px !important; /* Aún más arriba (30px de margen superior) */
    color: #ffffff !important;
    position: relative !important;
}

.left-content {
    text-align: left;
    width: 100%;
    max-width: 500px;
    z-index: 2;
}

.brand-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 0px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}

.brand-subtitle {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 15px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}

.brand-divider {
    width: 50px;
    height: 2px;
    background-color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.brand-features p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.9;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}

/* ==========================================
   PANEL DERECHO (TRANSLÚCIDO)
   ========================================== */
.right-panel {
    width: 40% !important;
    flex: 0 0 40% !important;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.9) 100%) !important;
    backdrop-filter: blur(2px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 40px 60px !important;
    position: relative !important;
}

.form-container {
    width: 100%;
    max-width: 360px;
}

.form-pretitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: left;
    letter-spacing: -0.5px;
}

/* Grupos de entrada transparentes */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 10px 12px 35px;
    border: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 300;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    outline: none;
    background-color: transparent !important; /* Totalmente transparente */
    color: #ffffff;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus, .input-group select:focus {
    border-color: #ffffff; /* Borde sólido blanco al foco */
    box-shadow: none;
    background-color: transparent !important;
}

/* Evitar fondo blanco nativo de Chrome en Autocompletado */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover, 
.input-group input:-webkit-autofill:focus, 
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: transparent !important;
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group select option {
    background-color: #1a1a1a;
    color: #fff;
}

.custom-select-arrow {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    z-index: 10;
    padding: 5px;
}

.toggle-password:hover {
    color: #ffffff;
}

/* Opciones del formulario */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    font-size: 0.85rem;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.remember-me input {
    margin-right: 8px;
    accent-color: #fff;
    cursor: pointer;
}

.forgot-password {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    opacity: 0.8;
}

.forgot-password:hover {
    color: #ffffff;
    opacity: 1;
}

/* Botón de ingreso estilo Píldora */
.btn-login {
    width: 100%;
    padding: 16px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 30px; /* Bordes extremadamente redondeados */
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-login:hover {
    background-color: #e2e8f0; 
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Footer */
.login-footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

/* RESPONSIVIDAD */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column !important;
        height: 100vh !important;
        width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
    }

    .left-panel {
        width: 100% !important;
        flex: none !important;
        height: auto !important;
        padding: 40px 30px 20px 30px !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .left-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .brand-title {
        font-size: 3.5rem;
    }
    
    .brand-subtitle {
        font-size: 1.5rem;
        letter-spacing: 10px;
    }
    
    .brand-divider {
        margin: 20px auto;
    }
    
    .brand-features {
        display: none; /* Ocultamos las features en móvil para ganar espacio */
    }

    .right-panel {
        width: 100% !important;
        flex: 1 !important;
        padding: 40px 25px !important;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 15%, rgba(0,0,0,0.95) 100%) !important;
        justify-content: flex-start !important;
    }

    .login-footer {
        position: relative !important;
        bottom: auto !important;
        margin-top: 40px !important;
    }
}

/* ==========================================
   DISEÑO DE BLOBS DINÁMICOS Y ANIMADOS
   ========================================== */
.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    mix-blend-mode: screen;
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.75) 0%, rgba(168, 85, 247, 0.25) 50%, rgba(0, 0, 0, 0) 100%);
    top: -5%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.65) 0%, rgba(244, 63, 94, 0.15) 60%, rgba(0, 0, 0, 0) 100%);
    bottom: -10%;
    right: 15%;
    animation-duration: 30s;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.55) 0%, rgba(59, 130, 246, 0.15) 50%, rgba(0, 0, 0, 0) 100%);
    top: 35%;
    left: 45%;
    animation-duration: 22s;
    animation-delay: -3s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(60px, 40px) scale(1.08) rotate(120deg);
    }
    66% {
        transform: translate(-40px, 80px) scale(0.92) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}
