/* Noryk — acesso, cadastro e recuperação. */
.auth-panel {
  width: 100%;
  max-width: 430px;
  padding: 0;
  margin-inline: auto;
  color: var(--text);
}

.auth-panel .page-title {
  margin: 0 0 14px;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(29px, 2.8vw, 34px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.045em;
}

.auth-panel .eyebrow {
  margin: 0 0 13px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .14em;
}

.auth-panel .lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  letter-spacing: -.012em;
}

.auth-panel .lead strong { color: var(--soft); font-weight: 500; }
.auth-panel .stack { display: flex; flex-direction: column; gap: 16px; }
.auth-panel .auth-form { gap: 20px; }
.auth-panel .button { width: 100%; min-height: 50px; justify-content: center; gap: 11px; font-size: 13.5px; }
.auth-panel .button > svg { flex: 0 0 auto; }
.auth-panel .button-ghost { min-height: 42px; }

.auth-panel .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: auto;
  min-height: 32px;
  margin: 0 0 30px -2px;
  padding: 0 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .18s ease;
}

.auth-panel .back-button:hover { color: var(--text); }
.auth-panel .back-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.auth-panel .progress-steps {
  display: flex;
  gap: 16px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.auth-panel .progress-steps li {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  gap: 7px;
  min-width: 0;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: #6c6579;
  font-size: 11px;
  font-weight: 500;
}

.auth-panel .progress-steps li.is-current { color: var(--text); border-bottom-color: var(--accent); }
.auth-panel .progress-steps li.is-complete { color: var(--soft); border-bottom-color: #62586f; }
.auth-panel .step-number { display: flex; align-items: center; justify-content: center; min-width: 17px; font-size: 9px; font-weight: 600; }
.auth-panel .is-current .step-number { color: #b58ae9; }
.auth-panel .is-complete .step-number { color: var(--success); }

.auth-panel .field-label { font-size: 12px; font-weight: 500; color: var(--soft); }
.auth-panel .input-wrap > svg { flex: 0 0 auto; color: #777080; }
.auth-panel .input-wrap .input { min-width: 0; font-size: 15px; }
.auth-panel .input-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 40px;
  margin-right: -7px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.auth-panel .input-action:hover { color: var(--text); }
.auth-panel .input-action:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }

.auth-panel .field-help { margin: -5px 0 0; font-size: 11.5px; line-height: 1.75; }
.auth-panel > .field-help { margin: -8px 0 25px; }
.auth-panel .text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--soft);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
}
.auth-panel .text-button:hover { color: var(--text); }
.auth-panel .text-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.auth-panel .auth-form-options { justify-content: space-between; gap: 12px; margin-top: -3px; font-size: 10.5px; }

.auth-panel .access-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 27px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .025em;
}
.auth-panel .access-badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.auth-panel .auth-divider { display: flex; align-items: center; gap: 13px; margin: 27px 0 19px; color: #746c81; font-size: 10px; white-space: nowrap; }
.auth-panel .auth-divider::before,
.auth-panel .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-panel .auth-trust { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin-top: 28px; color: #777080; font-size: 10px; line-height: 1.65; text-align: center; }
.auth-panel .auth-trust svg { flex: 0 0 auto; margin-top: 1px; }

.auth-panel .status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0 0 27px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff03;
}
.auth-panel .status-icon.success { color: var(--success); background: #63dba509; border-color: #63dba51a; }
.auth-panel .status-icon.violet { color: #b68ce9; background: #8d47ef0a; border-color: #8d47ef1c; }

.auth-panel .status-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 27px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff02;
  font-size: 12px;
  line-height: 1.65;
}
.auth-panel .status-card strong { font-size: 13px; font-weight: 500; }
.auth-panel .status-card p { margin: 0; }
.auth-panel .status-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-panel .identity-summary > strong { margin-top: -5px; font-size: 18px; font-weight: 500; letter-spacing: -.025em; }
.auth-panel .identity-summary > .row:last-child { margin-top: 8px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; }
.auth-panel .identity-summary .row > svg { color: #a67bdd; }
.auth-panel .contact-summary { gap: 7px; }
.auth-panel .contact-summary strong { font-size: 16px; }
.auth-panel .confirmation-detail { gap: 17px; }
.auth-panel .confirmation-detail .row { justify-content: flex-start; }
.auth-panel .confirmation-detail .row > svg:first-child { flex: 0 0 auto; color: var(--muted); }
.auth-panel .confirmation-detail .row > svg:last-child { margin-left: auto; color: var(--success); }
.auth-panel .security-note { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; margin: 2px 0 0; padding: 15px 16px; color: var(--muted); font-size: 11px; }
.auth-panel > .security-note { margin: 0 0 27px; }
.auth-panel .security-note > svg,
.auth-panel .security-note > .icon-tile { flex: 0 0 auto; color: #a185c4; }
.auth-panel .next-step-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 19px; }
.auth-panel .next-step-card > .icon-tile { flex: 0 0 auto; margin-top: 1px; color: #ab81df; }
.auth-panel .next-step-card p { margin-top: 6px; font-size: 11.5px; }

.auth-panel .password-rules { display: grid; gap: 8px; margin: -3px 0 4px; padding: 0; list-style: none; color: #91889e; }
.auth-panel .password-rules li { display: flex; align-items: center; gap: 8px; font-size: 10.5px; line-height: 1.55; }
.auth-panel .password-rules svg { flex: 0 0 auto; color: #8d7c9e; }

.auth-panel .otp-group,
.auth-panel .pin-group { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin: 1px 0 4px; }
.auth-panel .pin-group { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 286px); margin: 5px auto 10px; gap: 12px; }
.auth-panel .digit-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0;
  border: 1px solid #ffffff15;
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body), sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  caret-color: var(--accent);
  transition: border-color .18s ease, background .18s ease;
}
.auth-panel .pin-group .digit-input { height: 67px; font-size: 28px; }
.auth-panel .digit-input:focus { border-color: #a06bd7; background: #1b1524; }
.auth-panel .auth-resend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: -2px; font-size: 11px; }
.auth-panel .auth-secondary-action { margin-top: 15px; text-align: center; }

.auth-panel .channel-options { gap: 11px; margin: 4px 0 19px; }
.auth-panel .channel-option {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  column-gap: 13px;
  row-gap: 5px;
  width: 100%;
  min-height: 82px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff02;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.auth-panel .channel-option:hover { border-color: #ffffff26; background: #ffffff04; }
.auth-panel .channel-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth-panel .channel-option > .icon-tile { display: flex; align-items: center; justify-content: center; grid-column: 1; grid-row: 1 / span 2; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; color: #b28adf; background: #ffffff02; }
.auth-panel .channel-copy { display: flex; flex-direction: column; gap: 2px; grid-column: 2; grid-row: 1; }
.auth-panel .channel-copy strong { font-size: 13px; font-weight: 500; }
.auth-panel .channel-copy .muted { font-size: 10px; line-height: 1.65; }
.auth-panel .channel-option > svg:last-child { grid-column: 3; grid-row: 1 / span 2; color: var(--muted); }
.auth-panel .small-badge { grid-column: 2; grid-row: 2; width: fit-content; padding: 2px 6px; border-radius: 4px; background: #8d47ef13; color: #baa1d7; font-size: 8px; font-weight: 500; line-height: 1.5; }
.auth-panel .change-contact { margin-inline: auto; }

.auth-panel .biometric-visual { display: flex; align-items: center; justify-content: center; height: 116px; margin: -5px 0 22px; color: #af81e7; }
.auth-panel .biometric-scan { position: relative; display: flex; align-items: center; justify-content: center; width: 188px; height: 188px; margin: 39px auto 17px; color: #b592e0; }
.auth-panel .biometric-scan::before { position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: radial-gradient(circle, #8d47ef12 0%, transparent 72%); content: ''; }
.auth-panel .touch-scan { width: 198px; height: 198px; margin-top: 32px; border: 1px solid #ffffff09; border-radius: 50%; background: #ffffff01; }
.auth-panel .biometric-caption { margin: 0 0 36px; font-size: 11px; text-align: center; }
.auth-panel .scan-corner { position: absolute; width: 26px; height: 26px; border-color: #9162be; border-style: solid; }
.auth-panel .scan-corner.top-left { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 14px 0 0; }
.auth-panel .scan-corner.top-right { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 14px 0 0; }
.auth-panel .scan-corner.bottom-left { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 14px; }
.auth-panel .scan-corner.bottom-right { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-radius: 0 0 14px; }

.auth-panel.welcome-panel { max-width: 440px; text-align: center; }
.auth-panel .welcome-visual { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 300px); height: 226px; margin: 0 auto 24px; isolation: isolate; }
.auth-panel .welcome-visual::before { position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, #8d47ef2a 0%, #8d47ef09 42%, transparent 70%); content: ''; animation: noryk-welcome-glow 3s ease-in-out both; }
.auth-panel .welcome-symbol { display: block; width: 104px; height: 126px; object-fit: contain; filter: drop-shadow(0 10px 35px #7940b32b); animation: noryk-welcome-arrive 1s cubic-bezier(.2,.7,.2,1) both; }
.auth-panel .welcome-orbit { position: absolute; z-index: -1; width: 194px; height: 194px; border: 1px solid #a475dc13; border-radius: 50%; transform: rotate(-28deg) scaleY(.73); animation: noryk-welcome-orbit 9s linear infinite; }
.auth-panel .welcome-orbit-two { width: 274px; height: 274px; border-color: #ffffff06; transform: rotate(24deg) scaleY(.73); animation-duration: 12s; animation-direction: reverse; }
.auth-panel .welcome-logo { display: block; width: 132px; height: auto; max-height: 55px; margin: 0 auto 17px; object-fit: contain; }
.auth-panel.welcome-panel .eyebrow { color: #a69aad; font-size: 9px; letter-spacing: .16em; }
.auth-panel.welcome-panel .page-title { margin-bottom: 16px; font-size: 34px; }
.auth-panel.welcome-panel .lead { max-width: 345px; margin: 0 auto 30px; font-size: 13px; }
.auth-panel.welcome-panel .stack { max-width: 330px; margin-inline: auto; }

@keyframes noryk-welcome-arrive { from { opacity: 0; transform: translateY(12px) scale(.87); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes noryk-welcome-glow { 0% { opacity: 0; transform: scale(.75); } 40%, 100% { opacity: 1; transform: scale(1); } }
@keyframes noryk-welcome-orbit { from { transform: rotate(-28deg) scaleY(.73); } to { transform: rotate(332deg) scaleY(.73); } }

@media (max-width: 600px) {
  .auth-panel { max-width: 450px; }
  .auth-panel .page-title { font-size: 31px; }
  .auth-panel .lead { margin-bottom: 26px; font-size: 14px; line-height: 1.75; }
  .auth-panel .eyebrow { font-size: 9px; letter-spacing: .12em; }
  .auth-panel .back-button { margin-bottom: 25px; min-height: 36px; }
  .auth-panel .progress-steps { gap: 13px; margin-bottom: 31px; }
  .auth-panel .progress-steps li { gap: 6px; font-size: 10px; }
  .auth-panel .auth-form { gap: 19px; }
  .auth-panel .input-wrap .input { font-size: 16px; }
  .auth-panel .button { min-height: 52px; }
  .auth-panel .auth-trust { margin-top: 25px; font-size: 9.5px; }
  .auth-panel .status-icon { width: 57px; height: 57px; margin-bottom: 25px; border-radius: 16px; }
  .auth-panel .status-card { padding: 18px; margin-bottom: 25px; }
  .auth-panel .security-note { padding: 14px; margin-bottom: 0; }
  .auth-panel > .security-note { margin-bottom: 25px; }
  .auth-panel .digit-input { height: 56px; font-size: 22px; }
  .auth-panel .pin-group { width: min(100%, 276px); }
  .auth-panel .pin-group .digit-input { height: 64px; }
  .auth-panel .channel-option { column-gap: 11px; padding: 16px; }
  .auth-panel .biometric-scan { margin-top: 34px; }
  .auth-panel .welcome-visual { height: 210px; margin-bottom: 19px; }
  .auth-panel.welcome-panel .page-title { font-size: 31px; }
  .auth-panel.welcome-panel .lead { font-size: 12.5px; }
  .auth-panel .welcome-logo { width: 126px; margin-bottom: 16px; }
}

@media (max-width: 360px) {
  .auth-panel .page-title { font-size: 28px; }
  .auth-panel .otp-group { gap: 6px; }
  .auth-panel .digit-input { height: 49px; }
  .auth-panel .channel-copy .muted { font-size: 9px; }
  .auth-panel .channel-option { padding: 14px; column-gap: 9px; grid-template-columns: 38px minmax(0, 1fr) 16px; }
  .auth-panel .channel-option > .icon-tile { width: 38px; height: 38px; }
  .auth-panel .auth-form-options { font-size: 10px; }
  .auth-panel .auth-form-options .text-button { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-panel .welcome-symbol,
  .auth-panel .welcome-orbit,
  .auth-panel .welcome-visual::before { animation: none; }
  .auth-panel .digit-input,
  .auth-panel .channel-option { transition: none; }
}
