:root {
    --cream:        #F5F0E8;
    --cream-dark:   #EDE7DA;
    --orange:       #F5721A;
    --orange-dark:  #D9600F;
    --navy:         #1A2340;
    --navy-mid:     #2C3A5C;
    --muted:        #9E9486;
    --card-radius:  20px;
}

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

html, body {
    height: 100%;
    font-family: 'Manrope', sans-serif;
    background: var(--cream);
    overflow: hidden;
}

/* ── LAYOUT ── */
.login-wrapper {
    display: grid;
    grid-template-columns: 58% 42%;
    height: 100vh;
}

/* ── LEFT: VIDEO ── */
.video-panel {
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.video-panel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(245,240,232,0.10) 0%,
            rgba(26,35,64,0.25)   55%,
            rgba(26,35,64,0.60)   100%
        ),
        linear-gradient(to right,
            transparent 50%,
            rgba(245,240,232,0.68) 100%
        );
}

.video-branding {
    position: absolute;
    bottom: 48px;
    left: 48px;
    z-index: 2;
}

.brand-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
    display: block;
}

/* ── RIGHT: FORM PANEL ── */
.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
}

/*
    * Decoración: dos arcos/círculos delineados, off-center.
    * Muy finos, color cálido, nada de relleno. Solo trazo.
    * Posicionados para que se vean parcialmente — sin saturar.
    */
.form-panel .deco-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── CARD ── */
.form-card {
    width: 100%;
    max-width: 390px;
    background: #fff;
    border-radius: var(--card-radius);
    padding: 40px 36px;
    box-shadow:
        0 2px 8px  rgba(26,35,64,0.06),
        0 16px 48px rgba(26,35,64,0.10);
    animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) both;
    position: relative;
    z-index: 1;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 6px;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.84rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Labels */
.field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

/* Input wrapper */
.input-wrap { position: relative; }

.input-wrap .ico {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    display: flex;
    pointer-events: none;
    transition: color 0.2s;
}
.input-wrap:focus-within .ico { color: var(--orange); }
.input-wrap .ico i { font-size: 1rem; line-height: 1; }

.field-input {
    width: 100%;
    padding: 13px 44px;
    background: var(--cream);
    border: 1.5px solid var(--cream-dark);
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field-input::placeholder { color: #C0B8B0; font-weight: 400; }
.field-input:focus {
    border-color: var(--orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,114,26,0.14);
}

.toggle-pw {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    padding: 4px; cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.toggle-pw:hover { color: var(--orange); }
.toggle-pw i { font-size: 1rem; line-height: 1; }

/* Submit */
.btn-msm {
    width: 100%;
    padding: 14px;
    background: var(--orange);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(245,114,26,0.26);
}
.btn-msm:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(245,114,26,0.34);
}
.btn-msm:active { transform: translateY(0); }

/* Internal notice */
.internal-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 20px;
}
.internal-notice i { font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
    .login-wrapper { grid-template-columns: 1fr; }
    .video-panel   { display: none; }
    .form-panel    { padding: 32px 20px; }
}
