/* tin:tin_brand — acceso al panel de OMNES Tintorería (pantalla partida: plano acotado + formulario). */
html, body { height: 100%; }
body.ab-auth { margin: 0; background: var(--tin-asphalt, #0F2A2B); color: var(--tin-ink, #1A2029); font-family: var(--tin-font); font-size: 16px; -webkit-font-smoothing: antialiased; }
body.ab-auth * { box-sizing: border-box; }
.ab-skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 4px; z-index: 10; }
.ab-skip:focus { left: 8px; }
.ab-auth__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr); min-height: 100vh; }

/* ---- escena */
.ab-auth__art { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(ellipse at 62% 70%, rgba(11, 92, 138, .55), rgba(11, 92, 138, 0) 62%),
    linear-gradient(rgba(93, 178, 230, .12) 1px, transparent 1px) 0 0 / 120px 120px, linear-gradient(90deg, rgba(93, 178, 230, .12) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(93, 178, 230, .06) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(93, 178, 230, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--tin-asphalt, #0F2A2B); }
.ab-art__scene { position: absolute; left: 40px; right: 40px; top: 440px; bottom: 26px; width: calc(100% - 80px); height: calc(100% - 466px); z-index: -1; }
.ab-art__top { position: absolute; top: 40px; left: 48px; }
.ab-art__lockup { width: 250px; height: auto; display: block; }
.ab-art__copy { position: absolute; left: 48px; right: 48px; top: 128px; max-width: 430px; }
.ab-art__copy h2 { font-family: var(--tin-font-display); font-weight: 700; font-size: clamp(32px, 3vw, 44px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; text-transform: none; color: #fff; }
.ab-art__copy p { font-size: 17px; line-height: 1.55; color: rgba(230,235,240,.78); margin: 0; max-width: 470px; }
.ab-art__cards { position: absolute; right: 40px; top: 36px; display: grid; gap: 10px; width: 280px; }
@media (max-height: 760px) { .ab-art__cards { display: none; } }
.ab-art__card { background: rgba(24,33,43,.82); border: 1px solid rgba(93,178,230,.22); border-radius: var(--tin-radius, 8px); padding: 12px 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.ab-art__card--quote { border-left: 3px solid var(--tin-accent, #5EEAD4); }
.ab-art__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.ab-art__row b { font-family: var(--tin-font-tech); font-weight: 600; font-size: 19px; letter-spacing: .06em; }
.ab-art__chip { background: rgba(74,222,128,.16); color: #86EFAC; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.ab-art__od { font-size: 15px; font-weight: 600; margin: 6px 0 8px; }

.ab-art__bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 8px; }
.ab-art__bar i { display: block; height: 100%; width: 64%; background: linear-gradient(90deg, #0A7C6B, #5EEAD4); border-radius: 3px; animation: cbBar 6s ease-in-out infinite alternate; }
@keyframes cbBar { from { width: 58%; } to { width: 72%; } }
.ab-art__muted { color: rgba(255,255,255,.7); font-size: 12.5px; }
.ab-art__ok { color: #4ADE80; font-weight: 600; }
.ab-art__card--mini { display: flex; gap: 12px; align-items: center; }
.ab-art__card--mini svg { color: var(--tin-accent, #5EEAD4); flex: none; }
.ab-art__card--mini strong { display: block; font-size: 14px; }
.ab-art__card--mini small { display: block; font-size: 12.5px; color: rgba(255,255,255,.7); }
.ab-art__win { animation: abDraw 1.1s ease-out both; }
@keyframes abDraw { from { opacity: 0; transform: translate(60px, 96px); } to { opacity: 1; transform: translate(60px, 80px); } }
@media (prefers-reduced-motion: reduce) { .ab-art__win, .ab-art__bar i { animation: none !important; } }

/* ---- formulario */
.ab-auth__panel { background: #fff; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 5vw, 88px) 24px; position: relative; }
/* regla graduada en el canto del panel (plano acotado) */
.ab-auth__panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: repeating-linear-gradient(180deg, var(--tin-line-strong) 0 1px, transparent 1px 8px), repeating-linear-gradient(180deg, var(--tin-brand) 0 1.5px, transparent 1.5px 40px); background-size: 7px 100%, 14px 100%; background-repeat: no-repeat; border-right: 1px solid var(--tin-line); }
.ab-auth__panel { background: var(--tin-surface) linear-gradient(180deg, #fff 0%, #F7F9FB 100%); }
.ab-auth__box { width: 100%; max-width: 400px; margin: auto; }
.ab-auth__brand img { width: 230px; height: auto; display: block; margin-bottom: 36px; }
.ab-auth__title { font-family: var(--tin-font-display); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -.015em; color: var(--tin-ink); margin: 0 0 8px; letter-spacing: -.005em; }
.ab-auth__sub { color: var(--tin-muted); margin: 0 0 26px; font-size: 16px; line-height: 1.45; }
.ab-form { display: grid; gap: 18px; }
.ab-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; color: var(--tin-ink); }
.ab-field__row { display: flex; justify-content: space-between; align-items: baseline; }
.ab-link { color: var(--tin-brand); font-weight: 600; font-size: 14px; text-decoration: none; }
.ab-link:hover { text-decoration: underline; }
.ab-input { position: relative; display: flex; align-items: center; }
.ab-input > svg { position: absolute; left: 14px; width: 19px; height: 19px; fill: none; stroke: var(--tin-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ab-input input { width: 100%; height: 52px; padding: 0 48px 0 44px; border: 1.5px solid var(--tin-line-strong); border-radius: var(--tin-radius); font: inherit; font-size: 16px; color: var(--tin-ink); background: var(--tin-surface-2); transition: border-color .15s, box-shadow .15s, background .15s; }
.ab-input input:focus { outline: none; border-color: var(--tin-brand); background: #fff; box-shadow: var(--tin-focus); }
.ab-input input::placeholder { color: #8A9099; }
.ab-input__eye { position: absolute; right: 4px; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--tin-radius-sm); cursor: pointer; display: grid; place-items: center; }
.ab-input__eye svg { width: 20px; height: 20px; fill: none; stroke: var(--tin-muted); stroke-width: 1.8; }
.ab-input__eye[aria-pressed="true"] svg { stroke: var(--tin-brand); }
.ab-input__eye:focus-visible { outline: none; box-shadow: var(--tin-focus); }
.ab-caps { color: var(--tin-warn); font-size: 13px; margin: 6px 0 0; font-weight: 600; }
.ab-check { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; min-height: 44px; }
.ab-check input { width: 20px; height: 20px; accent-color: var(--tin-brand); margin: 0; }
.ab-btn { height: 54px; border: 0; border-radius: var(--tin-radius); background: var(--tin-brand); color: #fff; font: inherit; font-weight: 700; font-size: 17px; letter-spacing: .01em; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 1px 0 #063C5C, 0 8px 22px rgba(11,92,138,.28); transition: background .15s, transform .05s; position: relative; overflow: hidden; }
.ab-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ab-btn:hover { background: var(--tin-brand-700); }
.ab-btn:active { transform: translateY(1px); }
.ab-btn:focus-visible { outline: none; box-shadow: var(--tin-focus); }
.ab-btn::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); }
.ab-btn.is-busy { pointer-events: none; opacity: .85; }
.ab-btn.is-busy span::after { content: "…"; }
.ab-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--tin-brand); font-weight: 600; text-decoration: none; }
.ab-alert, .ab-form .alert { border-radius: var(--tin-radius); padding: 12px 14px; font-size: 14.5px; margin: 0; }
.ab-alert--danger, .ab-form .alert-danger { background: var(--tin-danger-bg); color: var(--tin-danger); border: 1px solid #F3C4C7; }
.ab-form .alert-success { background: var(--tin-ok-bg); color: var(--tin-ok); border: 1px solid #BFE3CB; }
.ab-form .alert-info, .ab-form .alert-warning { background: var(--tin-info-bg); color: var(--tin-info); border: 1px solid #C9DDF0; }
.ab-form .alert .close { display: none; }
.ab-auth__alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--tin-line); }
.ab-alt { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--tin-line); border-radius: var(--tin-radius); color: var(--tin-ink); text-decoration: none; min-height: 60px; }
.ab-alt:hover { border-color: var(--tin-brand); background: var(--tin-brand-50); }
.ab-alt svg { color: var(--tin-brand); flex: none; }
.ab-alt strong { display: block; font-size: 15px; }
.ab-alt small { display: block; color: var(--tin-muted); font-size: 13.5px; }
.ab-auth__foot { display: flex; justify-content: space-between; gap: 12px; max-width: 400px; width: 100%; margin: 28px auto 0; font-size: 13.5px; color: var(--tin-muted); white-space: nowrap; }
.ab-auth__foot a { color: var(--tin-muted); text-decoration: none; }
.ab-auth__foot a:hover { color: var(--tin-brand); text-decoration: underline; }
.ab-recaptcha { transform-origin: 0 0; }

/* ---- teléfono y tableta: banda de escena arriba + hoja blanca */
@media (max-width: 1399px) {
  .ab-art__cards { display: none; }
}
@media (max-width: 900px) {
  .ab-auth__grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ab-auth__art { height: 230px; }
  .ab-art__top { top: 22px; left: 22px; }
  .ab-art__lockup { width: 190px; }
  .ab-art__copy { display: none; }
  .ab-art__scene { top: 66px; bottom: 26px; left: 12px; right: 12px; width: calc(100% - 24px); height: 138px; }
  .ab-auth__panel { background: var(--tin-surface); }
  .ab-auth__panel { border-radius: 16px 16px 0 0; margin-top: -16px; padding: 28px 22px 20px; z-index: 1; }
  .ab-auth__panel::before { display: none; }
  .ab-auth__brand { display: none; }
  .ab-auth__title { font-size: 30px; }
  .ab-auth__foot { margin-top: 24px; }
}

/* teléfono: la banda superior muestra el plano centrado en la ventana */
@media (max-width: 900px) {
  .ab-art__scene { width: 100%; }
  .ab-auth__panel::before { display: none; }
}
html.oam-dark body.ab-auth .ab-auth__panel { background: var(--tin-surface); }
/* teléfono: nada más ancho que la pantalla */
@media (max-width: 760px) {
  html, body.ab-auth { overflow-x: hidden; }
  .ab-auth__art, .ab-auth__panel { width: 100%; max-width: 100vw; box-sizing: border-box; }
  .ab-auth__art svg { max-width: 100%; }
  .ab-auth__box, .ab-auth__foot { max-width: 100%; box-sizing: border-box; }
  .ab-form .row { margin-left: 0; margin-right: 0; }
  .ab-auth__foot { white-space: normal; flex-wrap: wrap; }
}
