/* Tamizia · páginas de acceso (entrar y registro). Mismo sistema que la landing:
   tinta sobre blanco, una sola familia, foto editorial con el producto encima. */
:root {
  --bg: #ffffff; --ink: #0d0d0d; --ink-2: #3a3a3a; --muted: #6f6f6f; --line: #e7e7e5; --soft: #f5f5f3;
  --green: #0d6b5e; --green-soft: #e2f1ec; --red: #b42318;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; left: -9999px; }

.split { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.side { display: flex; flex-direction: column; padding: 28px max(28px, env(safe-area-inset-left, 0px)) 28px max(28px, env(safe-area-inset-right, 0px)); padding-top: calc(28px + env(safe-area-inset-top, 0px)); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -0.03em; text-decoration: none; }
.logo svg { width: 20px; height: 20px; }
.form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 32px; }
.form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.form h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.form .sub { color: var(--muted); margin-top: -8px; font-size: 14.5px; }

.sso { display: grid; gap: 8px; }
.sso button, .sso .sso-btn { text-decoration: none; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 14px var(--sans); color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background .15s, border-color .15s; }
.sso .sso-btn:hover, .sso button:hover:not(:disabled) { background: var(--soft); border-color: #d8d8d6; }
.sso button:disabled { opacity: .55; cursor: default; }
.sso svg { width: 16px; height: 16px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13px; font-weight: 500; }
.field .row-label { display: flex; justify-content: space-between; align-items: baseline; }
.field .row-label a { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.field .row-label a:hover { color: var(--ink); }
.field input, .field select { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: 400 15px var(--sans); color: var(--ink); background: #fff; outline: 0; transition: border-color .15s, box-shadow .15s; width: 100%; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236f6f6f' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center/16px no-repeat; }
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13,13,13,.06); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field .hint { font-size: 13px; color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pass { position: relative; }
.pass input { padding-right: 76px; }
.pass button { position: absolute; right: 6px; top: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--soft); font: 500 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

.submit { height: 44px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 500 14.5px var(--sans); cursor: pointer; transition: background .15s, opacity .15s; }
.submit:hover { background: #2b2b2b; }
.submit:disabled { opacity: .5; cursor: default; }
.msg { font-size: 13px; border-radius: 12px; padding: 10px 12px; }
.msg.info { background: var(--soft); color: var(--ink-2); }
.msg.ok { background: var(--green-soft); color: var(--green); }
.msg.err { background: #fde4e2; color: var(--red); }
.switch { font-size: 13.5px; color: var(--muted); text-align: center; }
.switch a { color: var(--ink); font-weight: 500; text-decoration: none; }
.legal { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* la foto, con el producto flotando encima */
.media { position: relative; margin: 10px; border-radius: 24px; overflow: hidden; background: #d9d2c4 center/cover; min-height: 480px; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* lienzos pintados de la marca (los mismos de la web); sin fotos */
.media.acc-entrar { background-image: url("/assets/img/lienzo-hero.webp"); }
.media.acc-alta { background-image: url("/assets/img/panel/probar.webp"); background-color: #f6dcc4; }
.media.acc-entrar, .media.acc-alta { display: grid; place-items: center; }
.media .acc-card { position: relative; left: auto; top: auto; transform: none; width: min(440px, calc(100% - 64px)); gap: 14px; padding: 18px 20px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 40px 80px -30px rgba(10,40,34,.45); }
.acc-card .muted-s { color: var(--muted); font-weight: 400; }
.acc-card .bubble { font-size: 15px; }
/* el dato y su marcador en la misma celda: uno se va y entra el otro, en bucle */
.acc-d { display: inline-grid; vertical-align: baseline; }
.acc-d i { grid-area: 1 / 1; font-style: normal; white-space: nowrap; animation: accReal 7s infinite; }
.acc-d .r { color: var(--red); background: #fff; border-radius: 6px; padding: 0 4px; box-shadow: 0 0 0 1px #f2c9c5 inset; }
.acc-d .t { font: 500 .84em var(--mono); color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 2px 6px; animation-name: accTok; align-self: center; }
.acc-d:nth-of-type(2) i { animation-delay: .35s; }
.acc-d:nth-of-type(3) i { animation-delay: .7s; }
@keyframes accReal { 0%, 30% { opacity: 1; } 38%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes accTok { 0%, 30% { opacity: 0; } 38%, 92% { opacity: 1; } 100% { opacity: 0; } }
.acc-pie { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--green); background: var(--green-soft); border-radius: 12px; padding: 9px 12px; animation: accPie 7s infinite; }
.acc-pie svg { width: 16px; height: 16px; flex: none; }
@keyframes accPie { 0%, 34% { opacity: .35; } 42%, 92% { opacity: 1; } 100% { opacity: .35; } }
/* puesta en marcha: los pasos se van marcando uno tras otro */
.acc-pasos li { align-items: flex-start; }
.acc-pasos li div { display: flex; flex-direction: column; line-height: 1.35; }
.acc-pasos li div b { font-weight: 500; }
.acc-pasos li div span { font-size: 13px; color: var(--muted); }
.acc-pasos i { position: relative; margin-top: 1px; animation: accPaso 9s infinite; }
.acc-pasos i b { font-weight: 400; animation: accNum 9s infinite; }
.acc-pasos i svg { position: absolute; width: 14px; height: 14px; opacity: 0; animation: accChk 9s infinite; }
.acc-pasos li:nth-child(2) i, .acc-pasos li:nth-child(2) i b, .acc-pasos li:nth-child(2) i svg { animation-delay: 1.4s; }
.acc-pasos li:nth-child(3) i, .acc-pasos li:nth-child(3) i b, .acc-pasos li:nth-child(3) i svg { animation-delay: 2.8s; }
@keyframes accPaso { 0%, 10% { background: #fff; border-color: #d6d6d4; color: var(--muted); } 16%, 88% { background: var(--green); border-color: var(--green); color: #fff; } 96%, 100% { background: #fff; border-color: #d6d6d4; color: var(--muted); } }
@keyframes accNum { 0%, 10% { opacity: 1; } 16%, 88% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes accChk { 0%, 10% { opacity: 0; } 16%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.acc-alta .acc-pie { animation: accPie2 9s infinite; }
@keyframes accPie2 { 0%, 40% { opacity: .35; } 48%, 88% { opacity: 1; } 96%, 100% { opacity: .35; } }
.media.acc-alta .caption { color: #1f2a26; text-shadow: none; }
/* el lienzo de Entrar acaba en verde oscuro abajo: ahí el pie va en blanco */
.media.acc-entrar .caption { color: #fff; text-shadow: 0 1px 10px rgba(5,40,32,.35); }
@media (prefers-reduced-motion: reduce) { .acc-d i, .acc-pie, .acc-pasos i, .acc-pasos i b, .acc-pasos i svg { animation: none; } .acc-d .r { display: none; } .acc-pasos i { background: var(--green); border-color: var(--green); color: #fff; } .acc-pasos i b { opacity: 0; } .acc-pasos i svg { opacity: 1; } }
.card { position: absolute; z-index: 1; left: 50%; top: 8%; transform: translateX(-50%); width: min(420px, calc(100% - 48px)); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; padding: 16px 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; }
.card-top span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.card-top svg { width: 16px; height: 16px; }
.card-top .ok { color: var(--green); }
.bubble { background: var(--soft); border-radius: 16px; padding: 11px 14px; line-height: 1.75; }
.tok { font-family: var(--mono); font-size: .84em; font-weight: 500; color: var(--green); background: var(--green-soft); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-family: var(--mono); border: 1px solid #d6d6d4; color: var(--muted); flex: none; }
.steps li.done i { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.now { font-weight: 500; }
.steps small { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.caption.top { top: 22px; bottom: auto; }
.caption { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; color: #fff; font-size: 13.5px; max-width: 420px; text-shadow: 0 1px 12px rgba(0,0,0,.3); }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .media { display: none; }
}
@media (max-width: 420px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* páginas sueltas (errores, confirmaciones) */
.solo { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 24px; }
