:root {
    --tinta: #0b2a2b;
    --petroleo: #0b3b3c;
    --menta: #2bb3a3;
    --menta-clara: #d8f3ee;
    --hueso: #f6f8f7;
    --coral: #ff7a59;
    --gris: #5b6b6b;
    --borde: #dbe5e3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Figtree', system-ui, sans-serif; color: var(--tinta); background: var(--hueso); min-height: 100vh; }
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); min-height: 100vh; }

.login-marca {
    background: var(--petroleo); color: #eaf6f4; padding: 48px clamp(24px, 5vw, 72px);
    display: flex; flex-direction: column; gap: 48px; position: relative; overflow: hidden;
}
.login-marca::after {
    content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
    border: 70px solid rgba(43, 179, 163, .16);
}
.marca { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.marca-texto { max-width: 34rem; }
.etiqueta { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--menta); margin-bottom: 14px; }
.marca-texto h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; color: #fff; }
.marca-texto p { font-size: 1.05rem; line-height: 1.55; color: #b9d6d2; }
.marca-lista { list-style: none; display: grid; gap: 12px; margin-top: auto; position: relative; z-index: 1; }
.marca-lista li { padding-left: 28px; position: relative; color: #d7ebe8; }
.marca-lista li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--menta); border-bottom: 2px solid var(--menta); transform: rotate(-45deg); }

.login-panel { padding: 56px clamp(20px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; background: #fff; }
.login-panel h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
.sub { color: var(--gris); margin-bottom: 10px; }
.error { background: #fff1ee; color: #a3361b; border: 1px solid #ffc9bb; padding: 10px 14px; border-radius: 10px; }

.puestos { display: grid; gap: 12px; }
.puesto {
    display: flex; gap: 16px; align-items: center; text-align: left; width: 100%; padding: 16px 18px;
    background: #fff; border: 1.5px solid var(--borde); border-radius: 14px; cursor: pointer; font: inherit; color: inherit;
    transition: border-color .15s, background .15s, transform .15s;
}
.puesto:hover { border-color: var(--menta); background: #f3fbf9; }
.puesto:active { transform: scale(.99); }
.puesto:focus-visible { outline: 3px solid var(--menta); outline-offset: 2px; }
.puesto-icono { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--menta-clara); display: grid; place-items: center; }
.puesto-icono svg { width: 24px; height: 24px; fill: none; stroke: var(--petroleo); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.puesto-texto { display: grid; gap: 3px; }
.puesto-texto strong { font-size: 1.05rem; }
.puesto-texto small { color: var(--gris); font-size: .9rem; line-height: 1.35; }

.manual { margin-top: 10px; border-top: 1px solid var(--borde); padding-top: 14px; }
.manual summary { cursor: pointer; color: var(--petroleo); font-weight: 600; padding: 6px 0; }
.form-manual { display: grid; gap: 12px; margin-top: 12px; }
.form-manual label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form-manual input { font: inherit; padding: 12px 14px; border: 1.5px solid var(--borde); border-radius: 10px; }
.form-manual input:focus { outline: none; border-color: var(--menta); box-shadow: 0 0 0 3px rgba(43,179,163,.2); }
.boton { font: inherit; font-weight: 700; padding: 13px; border: 0; border-radius: 10px; background: var(--petroleo); color: #fff; cursor: pointer; }
.boton:hover { background: #0e4b4c; }
.pista { font-size: .85rem; color: var(--gris); }
.volver { margin-top: 18px; color: var(--petroleo); font-weight: 600; text-decoration: none; }
.volver:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .login { grid-template-columns: 1fr; }
    .login-marca { padding: 28px 20px; gap: 20px; }
    .marca-lista, .marca-texto p { display: none; }
    .marca-texto h1 { font-size: 1.5rem; margin-bottom: 0; }
    .login-panel { padding: 28px 20px 40px; justify-content: flex-start; }
}
