/*
 * auth.css — Themepsd 2026
 * Refatorado para seguir o design system do themepsd2026.css
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ══════════════════════════════════════════
   TOKENS — espelho exato do themepsd2026
══════════════════════════════════════════ */
:root {
  --primary: #6c5ce7;
  --primary-rgb: 108, 92, 231;
  --primary-hover: #5a4bd1;
  --primary-light: rgba(108, 92, 231, 0.08);
  --primary-new: linear-gradient(to top, #22a86f, #9ddf56);
  --box-shadow-new: 0px 10px 25px 0px rgba(0, 0, 0, 0.2);
  --text-shadow-new: 0px -1px #66b457;

  --danger: #e0564a;
  --success: #49b455;
  --warning: #f0a43a;

  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface2: #f7f8fa;
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(0, 0, 0, 0.13);
  --text: #0d0d0d;
  --text2: #5a5a72;
  --text3: #a0a0b8;
  --input-bg: #f4f5f8;
  --input-border: rgba(0, 0, 0, 0.1);

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --font: -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Fira Code", monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.25s var(--ease);
}

[data-theme="dark"] {
  --bg: #0d0d14;
  --surface: #16161f;
  --surface2: #1e1e2a;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --text: #f0f0f5;
  --text2: #8888a0;
  --text3: #44445a;
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.08);
  --primary-light: rgba(108, 92, 231, 0.14);
}

/* ══════════════════════════════════════════
   BASE
══════════════════════════════════════════ */
html,
body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  transition: background var(--t);
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

/* ══════════════════════════════════════════
   ROOT / LAYOUT
══════════════════════════════════════════ */
.auth-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   CARD
══════════════════════════════════════════ */
.auth-card {
  position: relative;
  z-index: 10;
  display: flex;
  width: 1024px;
  max-width: calc(100vw - 2rem);
  height: 786px;
  max-height: calc(100vh - 7rem);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  animation: fadeUp 0.5s var(--ease) both;
}

[data-theme="dark"] .auth-card {
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ══════════════════════════════════════════
   PAINEL ESQUERDO
══════════════════════════════════════════ */
.auth-left {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.auth-left-inner {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.auth-left-inner::-webkit-scrollbar {
  width: 3px;
}
.auth-left-inner::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ── Logo ── */
.panel-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.75rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.panel-logo img {
  height: 24px;
  width: auto;
}
[data-theme="dark"] .panel-logo img {
  filter: brightness(0) invert(1);
}

.panel-logo-wordmark {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}
.panel-logo-wordmark sup {
  font-size: 9px;
  font-weight: 400;
  color: var(--text3);
  vertical-align: super;
}

/* ── Cabeçalho de abas ── */
.panel-header {
  padding: 0.875rem 1.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.panel-tabs {
  display: flex;
  gap: 0;
  background: var(--input-bg);
  border-radius: var(--radius);
  padding: 3px;
  flex: 1;
}

.panel-tab {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  transition: all var(--t);
  font-family: var(--font);
}
.panel-tab.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px var(--border);
}
[data-theme="dark"] .panel-tab.active {
  background: rgba(255, 255, 255, 0.09);
}

.panel-tab--artist {
  display: flex;
  align-items: center;
  color: var(--primary);
  gap: 5px;
  flex: 0 0 auto;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: opacity 0.2s ease-out;
}
.panel-tab--artist.active {
  color: var(--primary);
  opacity: 1;
}

/* ── Botão tema ── */
.theme-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-btn:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ── Cabeçalho recuperação / verificação ── */
.panel-recover-header,
.panel-verify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.recover-back-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s;
  padding: 0;
}
.recover-back-btn:hover {
  opacity: 0.7;
}

.recover-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   VIEWS / ANIMAÇÃO
══════════════════════════════════════════ */
.panel-views {
  position: relative;
}

.panel-view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.75rem 1.5rem;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
  will-change: opacity, transform;
}
.panel-view.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.view-title {
  margin-bottom: 1.25rem;
}
.view-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.view-title p {
  font-size: 0.8125rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   FORMULÁRIO
══════════════════════════════════════════ */
.field {
  margin-bottom: 0.75rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text2);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.field label .req {
  color: var(--danger);
  margin-left: 0.18rem;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.input-wrap {
  position: relative;
}

.field input,
.auth-textarea {
  width: 100%;
  height: 42px;
  padding: 0 0.8rem;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  font-family: var(--font);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.auth-textarea {
  height: auto;
  padding: 0.6rem 0.8rem;
  resize: none;
  display: block;
}
.field input::placeholder,
.auth-textarea::placeholder {
  color: var(--text3);
}

.field input:focus,
.auth-textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.field input.has-toggle {
  padding-right: 2.5rem;
}

.field input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(224, 86, 74, 0.08);
}

.field-error {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--danger);
  margin-top: 0.2rem;
  display: none;
}
.field-error.visible {
  display: block;
}

.field-hint {
  font-size: 0.68rem;
  color: var(--text3);
  margin-top: 0.2rem;
  display: none;
}

/* ── Toggle olho ── */
.pw-toggle {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  padding: 0.2rem;
  transition: color 0.2s;
}
.pw-toggle:hover {
  color: var(--text);
}

/* ── Options row ── */
.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

.text-link {
  font-size: 0.8125rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.text-link:hover {
  opacity: 0.72;
}

/* ── Terms check ── */
.terms-check {
  margin-bottom: 0.875rem;
}
.terms-check .checkbox-label {
  font-size: 0.78rem;
  line-height: 1.5;
  align-items: flex-start;
}
.terms-check .checkbox-label input[type="checkbox"] {
  margin-top: 2px;
}

.field-error#registerTermsErr,
.field-error#artistTermsErr {
  display: none;
}
.field-error#registerTermsErr.visible,
.field-error#artistTermsErr.visible {
  display: block;
}

/* ══════════════════════════════════════════
   BOTÃO PRIMÁRIO
══════════════════════════════════════════ */
.btn-primary {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.32);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary--artist {
  background: #5b4ecf;
}
.btn-primary--artist:hover:not(:disabled) {
  background: #4a3eb8;
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ══════════════════════════════════════════
   BOTÃO GOOGLE
══════════════════════════════════════════ */
.btn-google {
  width: 100%;
  height: 42px;
  background: transparent;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.btn-google:hover:not(:disabled) {
  background: var(--input-bg);
  border-color: var(--text3);
}

/* ══════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.875rem 0;
  color: var(--text3);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ══════════════════════════════════════════
   MSG BOX
══════════════════════════════════════════ */
.msg-box {
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  display: none;
  margin-top: 0.625rem;
}
.msg-box.error {
  display: block;
  background: rgba(224, 86, 74, 0.07);
  color: var(--danger);
  border: 1px solid rgba(224, 86, 74, 0.15);
}
.msg-box.success {
  display: block;
  background: rgba(73, 180, 85, 0.07);
  color: var(--success);
  border: 1px solid rgba(73, 180, 85, 0.15);
}

/* ══════════════════════════════════════════
   PANEL FOOTER / RODAPÉ DO FORM
══════════════════════════════════════════ */
.panel-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text2);
}

/* ══════════════════════════════════════════
   ARTIST NOTICE
══════════════════════════════════════════ */
.artist-notice {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  background: var(--primary-light);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text2);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   LOGIN TYPE BAR (Cliente / Artista)
══════════════════════════════════════════ */
.login-type-bar {
  display: flex;
  background: var(--input-bg);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 1rem;
}

.ltb-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  transition: all var(--t);
  font-family: var(--font);
}
.ltb-btn i {
  font-size: 0.82rem;
}
.ltb-btn.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px var(--border);
}
[data-theme="dark"] .ltb-btn.active {
  background: rgba(255, 255, 255, 0.09);
}

/* ══════════════════════════════════════════
   FORÇA DA SENHA
══════════════════════════════════════════ */
.auth-pwd-strength-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}

.auth-pwd-strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.auth-pwd-strength-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 3px;
  transition:
    width 0.4s var(--ease),
    background 0.4s var(--ease);
}
.auth-pwd-strength-bar.s1::after {
  width: 25%;
  background: var(--danger);
}
.auth-pwd-strength-bar.s2::after {
  width: 50%;
  background: var(--warning);
}
.auth-pwd-strength-bar.s3::after {
  width: 75%;
  background: #3498db;
}
.auth-pwd-strength-bar.s4::after {
  width: 100%;
  background: var(--success);
}

.auth-pwd-strength {
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  min-width: 4.5rem;
  text-align: right;
}
.strength-weak {
  color: var(--danger);
}
.strength-fair {
  color: var(--warning);
}
.strength-good {
  color: #3498db;
}
.strength-strong {
  color: var(--success);
}

/* ══════════════════════════════════════════
   OTP / CÓDIGO
══════════════════════════════════════════ */
.code-row {
  display: flex;
  gap: 0.45rem;
  margin: 1rem 0;
}

.code-box {
  flex: 1;
  width: 38px;
  height: 46px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
}
.code-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.code-box.error {
  border-color: var(--danger);
}

.timer-row {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text3);
  margin-top: 0.625rem;
}

/* ══════════════════════════════════════════
   USERNAME FIELD
══════════════════════════════════════════ */
.username-wrap {
  position: relative;
}

.username-prefix {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text3);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 1;
}

.field input.username-field {
  padding-left: 1.65rem !important;
}
.field input.username-field:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1) !important;
}

.username-status {
  font-size: 0.68rem;
  font-weight: 500;
  margin-top: 0.2rem;
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.username-status.checking {
  display: flex;
  color: var(--text3);
}
.username-status.available {
  display: flex;
  color: var(--success);
}
.username-status.taken {
  display: flex;
  color: var(--danger);
}
.username-status i {
  font-size: 0.75rem;
}

/* ══════════════════════════════════════════
   OPTIONAL TOGGLE (campos opcionais artista)
══════════════════════════════════════════ */
.optional-group {
  margin-bottom: 0.75rem;
}

.optional-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  padding: 0.2rem 0;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.optional-toggle:hover {
  color: var(--primary);
}
.optional-toggle i {
  font-size: 0.75rem;
}

.optional-fields {
  display: none;
  animation: fadeUp 0.22s var(--ease) both;
}

/* ══════════════════════════════════════════
   RECAPTCHA
══════════════════════════════════════════ */
.recaptcha-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--text3);
  margin-top: 0.75rem;
}
.recaptcha-hint i {
  font-size: 0.8rem;
}

[data-theme="dark"] .g-recaptcha {
  filter: invert(1) hue-rotate(180deg);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ══════════════════════════════════════════
   GOOGLE-ONLY PANEL
══════════════════════════════════════════ */
.google-only-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  min-height: 300px;
  width: 100%;
}

.google-only-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-only-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.google-only-desc {
  font-size: 0.875rem;
  color: var(--text2);
  margin: 0;
  max-width: 300px;
  line-height: 1.5;
}

.btn-google--large {
  width: 100%;
  max-width: 320px;
  padding: 0.875rem 1.5rem !important;
  font-size: 1rem !important;
  gap: 0.875rem !important;
  justify-content: center;
  border-radius: var(--radius) !important;
}

/* ══════════════════════════════════════════
   PAINEL DIREITO (slideshow)
══════════════════════════════════════════ */
.auth-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.auth-slide-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.auth-slide.active {
  opacity: 1;
}

.auth-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/*.auth-right-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(12, 10, 22, 0.85) 0%,
    rgba(12, 10, 22, 0.4) 50%,
    rgba(12, 10, 22, 0) 100%
  );
}*/

.auth-right-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.auth-right-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  width: fit-content;
}
.auth-right-badge i {
  font-size: 0.75rem;
}

.auth-right-title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 0.625rem;
}
.auth-right-title em {
  font-style: normal;
  color: #fff;
  font-weight: 600;
}

.auth-right-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 300px;
}

.auth-right-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.auth-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.auth-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

/* ══════════════════════════════════════════
   MANUTENÇÃO
══════════════════════════════════════════ */
.auth-maintenance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem 1.75rem;
  text-align: center;
  gap: 0.75rem;
}
.auth-maintenance h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: -0.02em;
}
.auth-maintenance p {
  font-size: 0.8125rem;
  color: var(--text2);
  line-height: 1.6;
  max-width: 280px;
}
.auth-maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--danger);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(224, 86, 74, 0.08);
  border: 1px solid rgba(224, 86, 74, 0.15);
}

/* ══════════════════════════════════════════
   MODAL TERMOS / PRIVACIDADE
══════════════════════════════════════════ */
.terms-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.terms-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
[data-theme="dark"] .terms-modal-backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.terms-modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(18px) scale(0.98);
  transition:
    transform 0.28s var(--ease),
    opacity 0.28s var(--ease);
  opacity: 0;
}
.terms-modal-backdrop.open .terms-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
[data-theme="dark"] .terms-modal {
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

.terms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.875rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.terms-modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.terms-modal-header-title i {
  font-size: 1rem;
  color: var(--primary);
}

.terms-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.terms-modal-close:hover {
  background: rgba(224, 86, 74, 0.1);
  color: var(--danger);
}

.terms-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.terms-modal-body::-webkit-scrollbar {
  width: 4px;
}
.terms-modal-body::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}

.modal-terms-content h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.modal-terms-date {
  font-size: 0.72rem;
  color: var(--text3);
  margin-bottom: 1.25rem;
  display: block;
}
.modal-terms-content h2 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.07em;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.modal-terms-content p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 0.625rem;
}
.modal-terms-content ul {
  margin: 0.375rem 0 0.625rem 1.1rem;
  padding: 0;
}
.modal-terms-content ul li {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 0.2rem;
}
.modal-terms-content strong {
  color: var(--text);
  font-weight: 600;
}

.terms-modal-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.terms-modal-footer .btn-primary {
  width: auto;
  height: 38px;
  padding: 0 1.25rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════
   RODAPÉ GLOBAL
══════════════════════════════════════════ */
.global-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  top: 2rem;
}
.global-footer-links {
  display: flex;
  gap: 1.25rem;
}
.global-footer a,
.global-footer-copy {
  font-size: 0.7rem;
  color: var(--text3);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.global-footer a:hover {
  color: var(--text2);
}

/* ══════════════════════════════════════════
   ANIMAÇÕES
══════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}
.shake {
  animation: shake 0.38s var(--ease);
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
  }

  .auth-root {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    justify-content: flex-start;
    padding-bottom: 1rem;
  }

  .auth-card {
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    height: auto;
    max-height: none;
    border-radius: var(--radius-lg);
    margin: 1rem auto;
  }

  .auth-left {
    flex: none;
    border-right: none;
  }
  .auth-right {
    display: none;
  }
  .global-footer {
    padding: 0.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    max-width: calc(100vw - 1.5rem);
    margin: 0.75rem auto;
    border-radius: var(--radius);
  }
  .panel-view {
    padding: 1.1rem 1.25rem 1.25rem;
  }
  .panel-header {
    padding: 0.75rem 1.25rem 0;
  }
  .panel-logo {
    padding: 1rem 1.25rem;
  }
  .terms-modal {
    border-radius: var(--radius);
  }
  .terms-modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end;
  }
}
