/* Public authentication surfaces — Theme Humano */
.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  overflow-x: clip;
  background: var(--bg);
}

.auth-visual {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ECE9E4;
  color: #121827;
}

.auth-photo,
.auth-visual-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-photo {
  object-fit: cover;
  object-position: center center;
}

.auth-visual-overlay {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 245, 241, .94) 0%, rgba(247, 245, 241, .72) 31%, rgba(247, 245, 241, .12) 67%, transparent 78%),
    linear-gradient(0deg, rgba(247, 245, 241, .9) 0%, rgba(247, 245, 241, .18) 35%, transparent 58%);
}

.auth-brand,
.auth-story,
.auth-caption {
  position: relative;
  z-index: 2;
}

.auth-brand,
.auth-panel-brand {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.auth-brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
}

.auth-brand .brand-text,
.auth-panel-brand .brand-text {
  gap: 2px;
}

.auth-brand .brand-text .b1,
.auth-panel-brand .brand-text .b1 {
  color: currentColor;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.auth-brand .brand-text .b2,
.auth-panel-brand .brand-text .b2 {
  color: currentColor;
  opacity: .68;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-story {
  width: min(620px, 88%);
  margin-top: clamp(48px, 6vh, 84px);
  margin-bottom: auto;
}

.auth-story h1 {
  margin: 0;
  color: #121827;
  font-family: var(--font-sans);
  font-size: clamp(46px, 4.55vw, 66px);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.055em;
}

.auth-story h1 em {
  color: var(--human-accent);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.08em;
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.025em;
}

.auth-story-dot { color: var(--accent); }
.auth-story-heading--mobile { display: none; }

.auth-caption {
  width: min(460px, 72%);
  padding-bottom: 4px;
}

.auth-caption-title {
  margin: 0 0 8px;
  color: #2B3447;
  font-size: 14px;
  font-weight: 650;
}

.auth-story-copy {
  margin: 0;
  color: #2B3447;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
}

.auth-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 92px);
  background: var(--surface);
}

.auth-form {
  width: min(100%, 480px);
}

.auth-panel-brand { display: none; }

.auth-eyebrow {
  margin: 0 0 34px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-form h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.auth-intro {
  margin: 0 0 36px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
}

.auth-field { margin-bottom: 18px; }

.auth-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.auth-label-row {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-label-row label { margin-bottom: 0; }

.auth-password-toggle {
  min-width: 44px;
  min-height: 44px;
  margin: -8px -4px -8px 0;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.auth-password-toggle:hover { background: var(--accent-soft); }
.auth-password-toggle:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; }

.input.auth-input {
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.input.auth-input::placeholder { color: var(--ink-4); }

.input.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  justify-content: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
}

.auth-error {
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid var(--danger);
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger-ink);
  font-size: 13px;
  line-height: 1.45;
}

.auth-sso { margin-top: 24px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth-sso-actions { display: grid; gap: 8px; }

.auth-sso-button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.auth-sso-button:hover { background: var(--surface-2); }

.auth-recovery {
  margin: 30px 0 0;
  text-align: center;
  font-size: 13px;
}

.auth-recovery a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent-ink);
  font-weight: 550;
  text-decoration: none;
}

.auth-recovery a:hover { text-decoration: underline; }

.auth-story--security { margin-top: auto; margin-bottom: auto; }

[data-theme="dark"] .auth-visual { color: #F5F7FB; background: #0E1424; }
[data-theme="dark"] .auth-visual-overlay {
  background:
    linear-gradient(90deg, rgba(14, 20, 36, .92) 0%, rgba(14, 20, 36, .68) 35%, rgba(14, 20, 36, .12) 72%),
    linear-gradient(0deg, rgba(14, 20, 36, .86) 0%, transparent 50%);
}
[data-theme="dark"] .auth-story h1,
[data-theme="dark"] .auth-caption-title,
[data-theme="dark"] .auth-story-copy { color: #F5F7FB; }

@media (max-width: 1100px) {
  .auth-visual { padding: 34px 36px; }
  .auth-panel { padding: 40px; }
  .auth-story h1 { font-size: clamp(42px, 4.8vw, 56px); }
}

@media (max-width: 959px) {
  .auth-page { grid-template-columns: minmax(0, 45%) minmax(0, 55%); }
  .auth-visual { padding: 30px; }
  .auth-panel { padding: 34px; }
  .auth-story { width: 100%; }
  .auth-story h1 { font-size: clamp(36px, 5.1vw, 46px); }
  .auth-caption { width: 100%; }
}

@media (max-width: 767px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-panel {
    order: 1;
    min-height: calc(100svh - 180px);
    padding: 28px 20px 32px;
  }
  .auth-panel-brand {
    display: inline-flex;
    margin-bottom: 38px;
  }
  .auth-panel-brand .auth-brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .auth-panel-brand .brand-text .b1 { font-size: 15px; }
  .auth-visual {
    order: 2;
    min-height: 180px;
    max-height: 180px;
    padding: 20px;
  }
  .auth-photo { object-position: center 47%; }
  .auth-brand,
  .auth-caption { display: none; }
  .auth-story {
    width: min(100%, 420px);
    margin: auto 0;
  }
  .auth-story h1 {
    color: #121827;
    font-size: clamp(28px, 8.4vw, 36px);
    line-height: .94;
  }
  .auth-story-heading--desktop { display: none; }
  .auth-story-heading--mobile {
    display: block;
    max-width: 9.5em;
  }
  [data-theme="dark"] .auth-story h1 { color: #F5F7FB; }
  .auth-eyebrow { margin-bottom: 24px; }
  .auth-form h2 { font-size: clamp(30px, 8vw, 36px); }
  .auth-intro { margin-bottom: 28px; }
}

@media (max-width: 479px) {
  .auth-panel { padding-inline: 20px; }
  .auth-panel-brand { margin-bottom: 30px; }
  .auth-story-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
