[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;
  --ink: #17221f;
  --muted: #66716d;
  --line: #dfe5e1;
  --soft: #f3f6f4;
  --paper: #fbfcfb;
  --white: #ffffff;
  --forest: #163b32;
  --forest-deep: #0d2923;
  --sage: #a9c7b4;
  --mint: #dcebe2;
  --gold: #c7a96c;
  --danger: #a93c32;
  --focus: #247d67;
  font-family: "Manrope", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.access-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(370px, 43%) minmax(480px, 57%);
}

.context-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 44px clamp(36px, 5vw, 76px);
  color: #f4f8f5;
  background:
    radial-gradient(circle at 82% 18%, rgb(169 199 180 / 16%), transparent 30%),
    linear-gradient(145deg, var(--forest) 0%, var(--forest-deep) 80%);
}

.context-panel::after {
  position: absolute;
  z-index: -1;
  right: -170px;
  bottom: -205px;
  width: 470px;
  height: 470px;
  border: 1px solid rgb(220 235 226 / 16%);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgb(220 235 226 / 3%),
    0 0 0 96px rgb(220 235 226 / 2%);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-logo-frame {
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  height: 82px;
  border: 0;
  background: transparent;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.context-copy {
  max-width: 570px;
  margin: auto 0 54px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.context-copy h1 {
  max-width: 540px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.context-copy > p:last-child {
  max-width: 515px;
  margin: 26px 0 0;
  color: rgb(244 248 245 / 72%);
  font-size: 16px;
  line-height: 1.7;
}

.trust-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.trust-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.trust-number {
  padding-top: 2px;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 13px;
}

.trust-list p {
  margin: 0;
  color: rgb(244 248 245 / 64%);
  font-size: 13px;
  line-height: 1.5;
}

.trust-list strong {
  display: block;
  margin-bottom: 2px;
  color: #f4f8f5;
  font-size: 14px;
  font-weight: 650;
}

.legal-note {
  margin: 34px 0 0;
  color: rgb(244 248 245 / 45%);
  font-size: 12px;
}

.form-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 96px clamp(28px, 8vw, 120px) 72px;
}

.local-notice {
  position: absolute;
  top: 34px;
  right: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3e9b73;
  box-shadow: 0 0 0 4px rgb(62 155 115 / 12%);
}

.form-container {
  width: min(100%, 450px);
}

.security-foundation {
  position: absolute;
  right: auto;
  bottom: 62px;
  left: 50%;
  width: min(calc(100% - 56px), 450px);
  margin: 0 auto;
  transform: translateX(-50%);
}

.security-foundation-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
  text-align: center;
}

.security-foundation-heading p,
.security-foundation-heading span {
  margin: 0;
}

.security-foundation-heading p {
  color: #34443e;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.security-foundation-heading span {
  color: #8b9691;
  font-size: 10px;
}

.technology-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgb(255 255 255 / 72%);
}

.technology-badge {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
}

.technology-badge + .technology-badge {
  border-left: 1px solid var(--line);
}

.technology-logo {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
}

.technology-badge span {
  display: grid;
  min-width: 0;
}

.technology-badge strong {
  overflow: hidden;
  color: #2d3b36;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technology-badge small {
  overflow: hidden;
  margin-top: 1px;
  color: #7b8782;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 0;
  color: #78837e;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.security-controls svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #4e7f6d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.form-header {
  margin-bottom: 32px;
}

.form-kicker {
  margin: 0 0 10px;
  color: var(--focus);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.form-header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.form-header p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.steps li {
  border-top: 2px solid var(--line);
  padding-top: 9px;
  color: #89918e;
  font-size: 11px;
}

.steps li[aria-current="step"] {
  border-color: var(--forest);
  color: var(--forest);
  font-weight: 700;
}

.steps li.is-complete {
  border-color: var(--sage);
  color: #557064;
}

.field {
  margin-bottom: 20px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

label {
  color: #2a3733;
  font-size: 13px;
  font-weight: 650;
}

.field-link,
.text-button {
  padding: 0;
  border: 0;
  color: var(--focus);
  background: transparent;
  font-size: 12px;
  text-decoration: none;
}

.field-link:hover,
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

input {
  width: 100%;
  height: 50px;
  border: 1px solid #cad3ce;
  border-radius: 9px;
  outline: none;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input:hover {
  border-color: #aebcb5;
}

input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(36 125 103 / 12%);
}

input[readonly] {
  color: #59635f;
  background: var(--soft);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 12px;
  height: 50px;
  border: 0;
  color: var(--focus);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 24px;
}

.check-row input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--forest);
}

.check-row label {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 50px;
  border-radius: 9px;
  padding: 12px 18px;
  font-weight: 700;
  transition:
    transform 120ms ease,
    background 120ms ease;
}

.primary-button {
  border: 1px solid var(--forest);
  color: var(--white);
  background: var(--forest);
}

.primary-button:hover {
  background: var(--forest-deep);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.secondary-button {
  border: 1px solid #bfcac4;
  color: var(--forest);
  background: transparent;
}

.form-footnote {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.error-message {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: -5px 0 24px;
  padding: 0;
  list-style: none;
}

.requirements li {
  position: relative;
  padding-left: 17px;
  color: #7a8580;
  font-size: 12px;
}

.requirements li::before {
  position: absolute;
  left: 0;
  content: "○";
}

.requirements li.is-valid {
  color: #2e755d;
}

.requirements li.is-valid::before {
  content: "✓";
}

.authenticator-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--white);
}

.qr-placeholder {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 8px solid var(--white);
  border-radius: 5px;
  color: var(--forest);
  background:
    repeating-linear-gradient(45deg, var(--forest) 0 3px, transparent 3px 7px),
    repeating-linear-gradient(-45deg, rgb(22 59 50 / 45%) 0 2px, white 2px 6px);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.qr-placeholder span {
  padding: 5px;
  background: var(--white);
}

.authenticator-card h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.authenticator-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.code-input {
  letter-spacing: 0.42em;
  font-family: "DM Mono", monospace;
  font-size: 22px;
  text-align: center;
}

.success-seal {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--mint);
  font-size: 27px;
  font-weight: 700;
}

.preview-nav {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #a0aaa5;
  font-size: 12px;
}

@media (max-width: 860px) {
  .access-shell {
    grid-template-columns: 1fr;
  }

  .context-panel {
    min-height: auto;
    padding: 28px clamp(24px, 7vw, 60px) 34px;
  }

  .context-copy {
    margin: 68px 0 24px;
  }

  .context-copy h1 {
    max-width: 670px;
    font-size: clamp(36px, 9vw, 56px);
  }

  .trust-list,
  .legal-note {
    display: none;
  }

  .form-panel {
    min-height: 790px;
    padding: 90px 24px 234px;
  }

  .security-foundation {
    right: 24px;
    bottom: 58px;
    left: 24px;
    width: auto;
    max-width: 450px;
    transform: none;
  }
}

@media (max-width: 520px) {
  .context-copy > p:last-child {
    font-size: 14px;
  }

  .local-notice {
    top: 28px;
    right: 24px;
  }

  .requirements {
    grid-template-columns: 1fr;
  }

  .technology-badge {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
  }

  .technology-logo {
    width: 22px;
    height: 22px;
  }

  .technology-badge strong,
  .technology-badge small {
    white-space: normal;
  }

  .authenticator-card {
    grid-template-columns: 1fr;
  }

  .qr-canvas {
    justify-self: center;
  }

  .qr-placeholder {
    justify-self: center;
    width: 96px;
    height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Sistema tipográfico inspirado en Apex: interfaz sans, acentos editoriales y metadatos mono. */
.eyebrow,
.form-kicker,
.trust-number,
.code-input {
  font-family: "DM Mono", monospace;
}

.eyebrow,
.form-kicker {
  font-size: 10px;
  font-weight: 500;
}

.context-copy h1 {
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.form-header h2 {
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
}
.qr-canvas {
  width: 176px;
  height: 176px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.secret-disclosure {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.secret-disclosure summary {
  color: var(--focus);
  cursor: pointer;
}

.secret-disclosure code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  padding: 8px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--soft);
  font-family: "DM Mono", monospace;
  user-select: all;
}

.login-secondary {
  width: 100%;
  margin-top: 10px;
}








