/* RUNA — páginas de autenticação (login.html e cadastro.html)
   Split-screen: painel de marca (hero) + formulário no tema escuro/dourado da loja. */

.rn-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- painel de marca (esquerda) ---------- */
.rn-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3.5rem;
  background:
    linear-gradient(120deg, hsl(var(--background) / 0.92) 0%, hsl(var(--background) / 0.55) 55%, hsl(var(--background) / 0.85) 100%),
    url('hero-binder.jpg') center / cover no-repeat;
  border-right: 1px solid hsl(var(--border));
  overflow: hidden;
}

.rn-auth-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 30% 80%, hsl(40 56% 50% / 0.10), transparent 70%);
  pointer-events: none;
}

.rn-auth-logo img { height: 2rem; width: auto; filter: invert(1); }

.rn-auth-tagline { position: relative; max-width: 26rem; }

.rn-auth-kicker {
  font-size: 0.6875rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.rn-auth-tagline h2 {
  font-family: Cinzel, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.rn-auth-tagline h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #c79738, #d6bb85);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rn-auth-tagline p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.rn-auth-foot {
  position: relative;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.6);
}

/* ---------- painel do formulário (direita) ---------- */
.rn-auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 1.5rem;
  position: relative;
}

.rn-auth-back {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.rn-auth-back:hover { color: hsl(var(--primary)); }

.rn-auth-logo-mobile { display: none; }
.rn-auth-logo-mobile img { height: 1.75rem; width: auto; filter: invert(1); margin: 0 auto; }

/* ---------- card ---------- */
.rn-card {
  width: 100%;
  max-width: 26rem;
  background: hsl(var(--card) / 0.55);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.06), 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 2.25rem 2.25rem 2rem;
  animation: rn-fade-up 0.45s ease-out both;
}

@keyframes rn-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.rn-title {
  font-family: Cinzel, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: center;
}

.rn-subtitle {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.rn-form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.rn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rn-field { display: flex; flex-direction: column; gap: 0.4375rem; }

.rn-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.rn-input {
  width: 100%;
  padding: 0.75rem 0.9375rem;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.55);
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rn-input::placeholder { color: hsl(var(--muted-foreground) / 0.55); }

.rn-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.7);
}

.rn-btn {
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #1c1503;
  background: linear-gradient(135deg, #c79738, #d6bb85);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.rn-btn:hover { opacity: 0.92; }
.rn-btn:active { transform: translateY(1px); }
.rn-btn:disabled { opacity: 0.55; cursor: wait; }
.rn-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--primary) / 0.6); }

.rn-error {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 2px;
  padding: 0.625rem 0.8125rem;
}

/* ---------- captcha ---------- */
.rn-captcha { display: flex; gap: 0.625rem; align-items: stretch; }

.rn-captcha img {
  height: 3rem;
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  background: #141311;
  flex: none;
}

.rn-captcha-btn {
  width: 3rem;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.rn-captcha-btn:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.6); }

/* honeypot: invisível para humanos, irresistível para bots */
.rn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- rodapé do card ---------- */
.rn-switch {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.rn-switch a {
  color: hsl(var(--primary));
  font-weight: 600;
  margin-left: 0.375rem;
  letter-spacing: 0.06em;
}
.rn-switch a:hover { text-decoration: underline; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .rn-auth { grid-template-columns: 1fr; }
  .rn-auth-brand { display: none; }
  .rn-auth-logo-mobile { display: block; }
  .rn-auth-panel { padding-top: 4.5rem; }
  .rn-auth-back { top: 1.25rem; right: 1.25rem; }
  .rn-card { padding: 1.75rem 1.375rem 1.5rem; }
  .rn-row { grid-template-columns: 1fr; }
}

/* =====================================================================
   Design v2 (2026-10-23) — mesma linguagem do painel e da loja:
   rótulos em caixa normal, campos mais altos com foco dourado,
   cantos suaves, contraste maior.
   ===================================================================== */
.rn-auth { --muted-foreground: 40 5% 64%; --border: 40 8% 17%; }
.rn-auth-brand { padding: 2.75rem 3.5rem; }
.rn-auth-logo img { height: 1.75rem; }
.rn-auth-kicker { font-size: 0.75rem; letter-spacing: 0.16em; font-weight: 600; margin-bottom: 1.125rem; }
.rn-auth-tagline { max-width: 28rem; }
.rn-auth-tagline h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); margin-bottom: 1.125rem; }
.rn-auth-tagline p { font-weight: 400; color: hsl(40 6% 74%); }
.rn-auth-perks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.rn-auth-perks li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: hsl(40 6% 80%); }
.rn-auth-perks svg { flex: none; width: 1.75rem; height: 1.75rem; padding: 0.375rem; border-radius: 999px; color: hsl(var(--primary)); background: hsl(var(--primary) / 0.12); border: 1px solid hsl(var(--primary) / 0.3); }
.rn-auth-foot { font-size: 0.78rem; letter-spacing: 0.02em; text-transform: none; color: hsl(var(--muted-foreground)); }

.rn-auth-panel { gap: 1.25rem; }
.rn-auth-back {
  display: inline-flex; align-items: center; gap: 0.375rem; top: 1.5rem; right: 1.75rem;
  font-size: 0.8125rem; letter-spacing: 0; text-transform: none; padding: 0.5rem 0.75rem; border-radius: 8px;
}
.rn-auth-back:hover { background: hsl(var(--secondary)); }

.rn-card {
  max-width: 27rem; border-radius: 16px; padding: 2.5rem 2.25rem 2.25rem;
  background: hsl(0 0% 7.5%); border-color: hsl(var(--border));
  box-shadow: 0 1px 0 hsl(0 0% 100% / 0.03) inset, 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}
.rn-title { font-size: 1.625rem; letter-spacing: 0.01em; }
.rn-subtitle { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.5; }
.rn-form { margin-top: 2rem; gap: 1.125rem; }
.rn-label { font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: hsl(40 6% 78%); }
.rn-input {
  min-height: 2.875rem; padding: 0.6875rem 0.9375rem; font-size: 0.9375rem;
  background: hsl(0 0% 5.5%); border-radius: 10px;
}
.rn-input:hover { border-color: hsl(40 8% 25%); }
.rn-input:focus { border-color: hsl(var(--primary) / 0.85); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.16); }
.rn-pass { position: relative; }
.rn-pass .rn-input { padding-right: 3rem; }
.rn-pass-toggle {
  position: absolute; top: 50%; right: 0.375rem; transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: hsl(var(--muted-foreground)); cursor: pointer;
}
.rn-pass-toggle:hover { color: hsl(var(--foreground)); background: hsl(var(--secondary)); }
.rn-pass-toggle:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 1px; }
.rn-btn {
  min-height: 3rem; margin-top: 0.5rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em; text-transform: none;
  color: #15110a; border-radius: 10px;
  background: linear-gradient(180deg, hsl(40 60% 57%), hsl(40 56% 45%));
  box-shadow: 0 1px 0 hsl(0 0% 100% / 0.2) inset, 0 10px 24px -12px hsl(40 56% 50% / 0.7);
}
.rn-btn:hover { opacity: 1; filter: brightness(1.07); }
.rn-error { border-radius: 10px; }
.rn-captcha img, .rn-captcha-btn { border-radius: 10px; }
.rn-captcha img { height: 2.875rem; }
.rn-captcha-btn { width: 2.875rem; }
.rn-switch { font-size: 0.875rem; }
.rn-switch a { letter-spacing: 0; }
.rn-auth-legal { max-width: 27rem; text-align: center; font-size: 0.75rem; line-height: 1.55; color: hsl(var(--muted-foreground)); }
.rn-auth-legal a { color: hsl(40 6% 78%); text-decoration: underline; text-underline-offset: 2px; }
.rn-auth-legal a:hover { color: hsl(var(--primary)); }

@media (max-width: 900px) {
  .rn-auth-panel { padding: 4.5rem 1rem 2rem; justify-content: flex-start; }
  .rn-auth-back { top: 1rem; right: 1rem; }
  .rn-card { padding: 2rem 1.375rem 1.75rem; border-radius: 14px; }
}
#auth-captcha::placeholder { text-transform: none; }
