@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0b0f19;
    color: #f1f5f9;
    overflow-x: hidden;
}

/* Contenedor principal */
.login-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Lado Izquierdo - Panel de Marca */
.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    background: linear-gradient(135deg, #004d40 0%, #00241e 100%);
    position: relative;
    padding: 40px;
    text-align: center;
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(217, 163, 0, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.7;
}

.brand-inner {
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.brand-inner h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.brand-inner p {
    color: #a7f3d0;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Lado Derecho - Panel de Formulario */
.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    background-color: #0b0f19;
    padding: 40px;
}

/* Estructura de tarjeta para dar soporte visual */
.form-inner-card {
    width: 100%;
    max-width: 400px;
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.login-logo-mobile {
    display: none;
    margin-bottom: 25px;
    text-align: center;
}

.form-inner-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* Inputs de diseño limpio (No flotantes para evitar bugs visuales) */
.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.input-group-custom i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    z-index: 10;
}

.input-custom {
    width: 100%;
    background-color: #0b0f19 !important;
    border: 1px solid #1f2937 !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 14px 14px 14px 42px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-custom:focus {
    border-color: #00695C !important;
    box-shadow: 0 0 0 4px rgba(0, 105, 92, 0.15) !important;
}

.input-custom:focus + i {
    color: #d9a300;
}

/* Solución definitiva al bug del autocompletado de Chrome (Fondo Blanco) */
.input-custom:-webkit-autofill,
.input-custom:-webkit-autofill:hover, 
.input-custom:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0b0f19 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Botón moderno plano */
.btn-login {
    width: 100%;
    background-color: #d9a300 !important;
    border: none !important;
    color: #0b0f19 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-login:hover {
    background-color: #f2b700 !important;
    box-shadow: 0 4px 12px rgba(217, 163, 0, 0.25);
}

.btn-login:active {
    transform: scale(0.99);
}

/* Responsivo */
@media (max-width: 991px) {
    .login-brand-panel {
        display: none;
    }
    .login-form-panel {
        width: 100%;
        padding: 20px;
    }
    .form-inner-card {
        padding: 35px 20px;
        border: none;
        background-color: transparent;
        box-shadow: none;
    }
    .login-logo-mobile {
        display: block;
    }
    .form-inner-card h2, .form-subtitle {
        text-align: center;
    }
}