/* Ventas · pantalla de ingreso (Views/Cuenta/Login.cshtml). Mismos colores y tipografía que site.css. */
:root {
  color-scheme: light;
  --ink: #141210; --ink-2: #2a2622; --paper: #fff; --ground: #f7f4ef; --ground-2: #efe9e1;
  --line: #e6dfd5; --line-2: #d8cfc2; --muted: #6c645a;
  --orange: #f39200; --orange-wash: #fff3e0;
  --red: #b3362b; --red-wash: #fbe9e7;
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box }
html, body { height: 100%; margin: 0 }
body { background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased }
::selection { background: var(--orange); color: var(--ink) }
button, input { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px }

.ing { min-height: 100%; display: grid; grid-template-columns: minmax(320px, 5fr) 7fr }

/* lado de marca: el negro de la barra superior de Ventas */
.ing-marca { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 36px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px }
.ing-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px }
.ing-logo .sep { width: 1px; height: 26px; background: rgba(255,255,255,.6) }
.ing-lema { position: relative; z-index: 1; margin: 0; max-width: 22ch; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; color: #f4efe8 }
.ing-x { position: absolute; right: -16%; top: 6%; width: 72%; height: auto; fill: none; stroke: var(--orange); stroke-width: .35; stroke-linejoin: round; opacity: .55 }

/* formulario */
.ing-panel { display: grid; place-items: center; padding: 48px 24px }
.ing-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px }
.ing-form h1 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.015em; line-height: 1.1 }
.ing-sub { margin: -10px 0 8px; color: var(--muted) }

.ing-campo { display: flex; flex-direction: column; gap: 6px }
.ing-campo > span:first-child { font-weight: 800; font-size: 13px; color: var(--ink-2) }
.ing-campo input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); caret-color: var(--orange);
  transition: border-color .15s, box-shadow .15s }
.ing-campo input:hover { border-color: #b9ad9d }
.ing-campo input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-wash), 0 0 0 4px var(--orange) }
.ing-campo input[aria-invalid="true"] { border-color: var(--red) }
.ing-clave { position: relative; display: block }
.ing-clave input { padding-right: 88px }
.ing-ver { position: absolute; top: 6px; right: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 800; font-size: 13px; cursor: pointer }
.ing-ver:hover { background: var(--ground-2); color: var(--ink) }

.ing-check { display: flex; align-items: center; gap: 10px; color: var(--ink-2); cursor: pointer; user-select: none }
.ing-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); cursor: pointer }

.ing-btn { height: 48px; margin-top: 6px; border: 0; border-radius: 10px; background: var(--orange); color: var(--ink); /* texto negro: el blanco sobre #F39200 no tiene contraste */
  font-weight: 900; font-size: 16px; cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s }
.ing-btn:hover { background: #ffa31f; box-shadow: 0 6px 16px -6px rgba(243,146,0,.7) }
.ing-btn:active { transform: translateY(1px) }
.ing-btn:disabled { background: #f6c27a; box-shadow: none; cursor: progress }

.ing-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--red-wash); color: #8e2a21; font-weight: 700 }
.ing-error svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round }

@media (max-width: 760px) {
  .ing { grid-template-columns: 1fr; grid-template-rows: auto 1fr }
  .ing-marca { padding: 20px 16px; gap: 0 }
  .ing-lema, .ing-x { display: none }
  .ing-panel { place-items: start center; padding: 32px 16px }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important } }
