:root {
    --ql-blue:        #3b77c1;
    --ql-blue-dark:   #0d2340;
    --ql-blue-glow:   rgba(59, 119, 193, 0.18);
    --ql-orange:      #d77700;
    --ql-orange-dark: #b86300;
    --ql-orange-glow: rgba(215, 119, 0, 0.16);
}

/* ── RESET ──────────────────────────────── */

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

body {
    margin: 0;
    height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
}

/* ── LAYOUT ─────────────────────────────── */

.login-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 100vh;
}

/* ── HERO (LEFT) ─────────────────────────── */

.login-hero {
    background-color: var(--ql-blue-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 72px;
    overflow: hidden;
}

/* Glow azul top-left */
.login-hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ql-blue-glow) 0%, transparent 65%);
    top: -180px;
    left: -180px;
    pointer-events: none;
}

/* Barra diagonal naranja decorativa */
.login-hero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 3px;
    background: var(--ql-orange);
    bottom: 80px;
    right: -50px;
    transform: rotate(-35deg);
    opacity: 0.5;
}

/* Línea vertical — gradiente azul → naranja */
.hero-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--ql-orange), var(--ql-blue) 60%, transparent);
}

/* Círculo decorativo bottom-right */
.hero-dot {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 40px solid rgba(59, 119, 193, 0.08);
    pointer-events: none;
}

/* Logo */
.hero-logo {
    width: 200px;
    max-width: 100%;
    margin-bottom: 48px;
    padding: 10px 16px;
    background: white;
    border-radius: 10px;
}

/* Titular */
.hero-headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 3.6rem;
    line-height: 1.05;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

/* Palabra destacada en naranja */
.hero-headline em {
    color: var(--ql-orange);
    font-style: normal;
    display: block;
}

/* Tagline */
.hero-tagline {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
    max-width: 360px;
}

/* Features */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-features li i {
    color: var(--ql-orange);
    font-size: 1rem;
    width: 18px;
    flex-shrink: 0;
}

/* ── PANEL DERECHO ───────────────────────── */

.login-panel {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 52px;
    position: relative;
}

/* Barra naranja top */
.login-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ql-orange);
}

/* Glow azul sutil bottom-right */
.login-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ql-blue-glow) 0%, transparent 65%);
    pointer-events: none;
}

/* ── LOGIN BOX ───────────────────────────── */

.login-box {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 1;
}

/* Eyebrow — azul */
.login-box-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ql-blue);
    margin-bottom: 8px;
}

.login-box h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    color: var(--ql-blue-dark);
    margin-bottom: 4px;
    line-height: 1.1;
}

.login-box-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 36px;
}

/* ── LABELS ──────────────────────────────── */

.field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #374151;
    margin-bottom: 7px;
}

/* ── INPUT GROUP ─────────────────────────── */

.input-group {
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e5e7eb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f9fafb;
}

/* Focus: azul */
.input-group:focus-within {
    border-color: var(--ql-blue);
    box-shadow: 0 0 0 3px var(--ql-blue-glow);
    background: #fff;
}

.input-group-text {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding-left: 14px;
    transition: color 0.2s;
}

.input-group:focus-within .input-group-text {
    color: var(--ql-blue);
}

.form-control {
    height: 46px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--ql-blue-dark);
    padding-left: 8px;
}

.form-control::placeholder {
    color: #d1d5db;
}

.form-control:focus {
    box-shadow: none;
    background: transparent;
    outline: none;
}

/* Toggle password */
.password-group .btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    padding-right: 12px;
    transition: color 0.2s;
}

.password-group .btn:hover {
    color: var(--ql-blue);
    background: transparent;
    box-shadow: none;
}

/* ── CHECKBOX ────────────────────────────── */

.form-check {
    margin-top: 4px;
}

.form-check-input:checked {
    background-color: var(--ql-blue);
    border-color: var(--ql-blue);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--ql-blue-glow);
    border-color: var(--ql-blue);
}

.form-check-label {
    font-size: 0.82rem;
    color: #6b7280;
    cursor: pointer;
}

/* ── BOTÓN INGRESAR — naranja ────────────── */

.btn-login {
    background: var(--ql-orange);
    color: #ffffff;
    border: none;
    height: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 8px;
}

.btn-login:hover {
    background: var(--ql-orange-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(215, 119, 0, 0.35);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── CRÉDITOS ────────────────────────────── */

.login-credits {
    position: absolute;
    bottom: 18px;
    right: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #9ca3af;
    z-index: 1;
}

.login-credits-text {
    opacity: 0.8;
}

.login-credits img {
    max-height: 20px;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.login-credits:hover img {
    opacity: 1;
}

/* ── ALERT ERROR ─────────────────────────── */

.alert-danger {
    font-size: 0.85rem;
    border-radius: 8px;
    border: none;
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px 14px;
}

/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 900px) {
    body { overflow: auto; }

    .login-wrapper {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .login-hero {
        display: none;
    }

    .login-panel {
        padding: 48px 28px;
        justify-content: flex-start;
        padding-top: 60px;
    }

    .login-box {
        max-width: 100%;
    }
}
