:root {
    --naranja: #E9813F;
    --naranja-oscuro: #C96A2E;
    --crema: #F5F0D0;
    --texto: #2B2013;
    --texto-suave: #8A7F6B;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
}

/* Contenedor general: dos paneles lado a lado en desktop */
#login-screen {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ---------- Panel izquierdo (marca) ---------- */
#login-brand-panel {
    position: relative;
    flex: 1;
    background: var(--naranja);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Círculos decorativos */
.login-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-circle-1 {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -120px;
}

.login-circle-2 {
    width: 260px;
    height: 260px;
    bottom: -100px;
    right: -80px;
}

.login-circle-3 {
    width: 140px;
    height: 140px;
    bottom: 60px;
    left: 40px;
    background: rgba(255, 255, 255, 0.06);
}

#login-brand-card {
    position: relative;
    z-index: 2;
    text-align: center;
}

#login-brand-card img {
    width: 400px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

#login-brand-subtitle {
    font-family: 'Poppins', sans-serif;
    color: var(--crema);
    font-size: 15px;
    margin-top: 18px;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

/* ---------- Panel derecho (formulario) ---------- */
#login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

#login-box {
    width: 100%;
    max-width: 340px;
    text-align: left;
}

#login-box-logo {
    display: flex;
    justify-content: center;
    margin: 0 auto 20px;
}

#login-box-logo img {
    width: 150px;
    height: 150px;
    display: block;
}

#login-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--texto);
    text-align: center;
    margin: 0 0 6px;
}

#login-subtitle {
    text-align: center;
    color: var(--texto-suave);
    font-size: 14px;
    margin: 0 0 32px;
}

/* Franja de error (arriba del formulario) */
.login-error {
    background-color: #FDE8E8;
    color: #B42318;
    border: 1px solid #F3B4B0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 18px;
    text-align: center;
}

.login-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--texto);
    margin-bottom: 6px;
    margin-top: 18px;
}

#login-box input.form-control {
    display: block;
    width: 100%;
    height: 46px;
    border: 1.5px solid #E6E0CC;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.15s;
    background: #FCFBF6;
    box-sizing: border-box;
}

#login-box input.form-control:focus {
    border-color: var(--naranja);
    background: #fff;
}

#login-box input::placeholder {
    color: #B8AF98;
}

/* Fix del autofill amarillo del navegador */
#login-box input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #FCFBF6 inset !important;
    -webkit-text-fill-color: var(--texto) !important;
}

#login-forgot-wrap {
    text-align: right;
    margin-top: 10px;
}

#login-forgot {
    font-size: 13px;
    color: var(--naranja-oscuro);
    text-decoration: none;
    font-weight: 500;
}

#login-forgot:hover {
    text-decoration: underline;
}

#login-box .btn-lg {
    width: 100%;
    height: 48px;
    margin-top: 26px;
    background: var(--naranja);
    border-color: var(--naranja);
    color: #fff;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    transition: background 0.15s, transform 0.1s;
}

#login-box .btn-lg:hover,
#login-box .btn-lg:focus {
    background: var(--naranja-oscuro);
    border-color: var(--naranja-oscuro);
    color: #fff;
}

#login-box .btn-lg:active {
    transform: scale(0.98);
}

/* Clase de error solo para el borde (validación de campos) */
.input-error {
    border: 2px solid red !important;
    box-shadow: none;
}

/* ---------- Mobile: el panel de marca se oculta por completo ---------- */
@media (max-width: 760px) {
    #login-brand-panel {
        display: none;
    }

    #login-form-panel {
        flex: 1 1 100%;
    }
}
