/* Login (/login): form on the left, a rotating preview of the panel on the right. EaseBot style. */
.auth-main { width: auto; max-width: none; min-height: 100vh; margin: 0; padding: 0; background: #050506; }
.auth {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  background-color: #050506;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.auth-left { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-logo { display: inline-flex; margin-bottom: 22px; }
.auth-logo img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.auth h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.auth-sub { margin: 10px 0 34px; color: #8b8b94; font-size: 15px; }

.auth-alert { margin: -12px 0 18px; padding: 10px 14px; border: 1px solid rgba(239,68,68,.35); border-radius: 10px; background: rgba(239,68,68,.08); color: #fca5a5; font-size: 13px; }
.auth-alert.ok { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); color: #86efac; }

.auth-discord {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 14px 18px;
  border: 1px solid rgba(88,101,242,.45); border-radius: 12px; background: linear-gradient(180deg, #1c1d4a, #15163a);
  color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.auth-discord:hover { border-color: #5865f2; box-shadow: 0 0 0 3px rgba(88,101,242,.18), 0 10px 30px rgba(88,101,242,.18); }
.auth-discord:active { transform: translateY(1px); }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 30px 0 26px; color: #52525b; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #1f1f23; }

.auth-form label { display: block; margin-bottom: 10px; color: #a1a1aa; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.auth-form input {
  width: 100%; padding: 15px 16px; border: 1px solid #1f1f23; border-radius: 12px; background: #0c0c0e;
  color: #fff; font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-form input::placeholder { color: #3f3f46; }
.auth-form input:focus { border-color: #3f3f46; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.auth-white {
  display: block; width: 100%; margin-top: 16px; padding: 15px; border: 0; border-radius: 12px; background: #fff;
  color: #09090b; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s;
}
.auth-white:hover { background: #e4e4e7; }
a.auth-white { text-align: center; text-decoration: none; }
.auth-white:active, .auth-primary:active { transform: translateY(1px); }

.auth-sent { margin: 0; color: #71717a; font-size: 14px; }
.auth-email { margin: 6px 0 20px; color: #fff; font-size: 15px; font-weight: 600; word-break: break-all; }
.auth-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.auth-otp input {
  width: 100%; aspect-ratio: 1 / 1.1; border: 1px solid #1f1f23; border-radius: 12px; background: #0c0c0e;
  color: #fff; font: inherit; font-size: 22px; font-weight: 700; text-align: center; outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-otp input:focus { border-color: #52525b; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.auth-otp input.filled { border-color: #3f3f46; }
.auth-row { display: flex; gap: 12px; margin-top: 20px; }
.auth-primary {
  flex: 1; padding: 15px; border: 0; border-radius: 12px; background: #fff; color: #09090b;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.auth-primary:disabled { background: #3a3a3f; color: #8b8b94; cursor: not-allowed; }
.auth-ghost {
  display: inline-flex; align-items: center; padding: 0 20px; border: 1px solid #1f1f23; border-radius: 12px;
  color: #a1a1aa; font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s;
}
.auth-ghost:hover { border-color: #3f3f46; color: #fff; }
.auth-resend { margin-top: 16px; color: #71717a; font-size: 13px; }
.auth-resend button { padding: 0; border: 0; background: none; color: #d4d4d8; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-resend button:hover { color: #fff; }
.auth-terms { margin: 34px 0 0; color: #52525b; font-size: 12px; line-height: 1.6; }
.auth-terms a { color: #8b8b94; }
.auth-terms a:hover { color: #fff; }

/* ---------- Preview ---------- */
.auth-right { display: flex; align-items: center; justify-content: center; padding: 48px 40px; background: linear-gradient(90deg, rgba(5,5,6,0), rgba(16,16,19,.75)); }
.auth-show { position: relative; width: 100%; max-width: 560px; min-height: 560px; }
.auth-dots { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 36px; }
.auth-dots i { width: 14px; height: 5px; border-radius: 4px; background: #27272a; transition: width .35s, background .35s; cursor: pointer; }
.auth-dots i.on { width: 32px; background: #fff; }
.auth-slide { position: absolute; inset: 41px 0 auto 0; opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; pointer-events: none; }
.auth-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.auth-slide-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.auth-slide-head strong { display: block; font-size: 19px; font-weight: 700; }
.auth-slide-head small { color: #52525b; font-size: 13px; }
.auth-online { display: inline-flex; align-items: center; gap: 8px; color: #8b8b94; font-size: 13px; }
.auth-online i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,.7); }

.auth-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.auth-stat { padding: 16px; border: 1px solid #1f1f23; border-radius: 16px; background: #0d0d10; }
.auth-stat > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.auth-stat small { color: #8b8b94; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.auth-ico { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1px solid #27272a; border-radius: 7px; color: #d4d4d8; font-size: 12px; }
.auth-stat b { display: block; margin: 14px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.auth-stat em { color: #22c55e; font-size: 11.5px; font-style: normal; font-weight: 700; }
.auth-stat em span { color: #52525b; font-weight: 500; }

.auth-chart { margin-top: 12px; padding: 22px 22px 16px; border: 1px solid #1f1f23; border-radius: 16px; background: #0d0d10; }
.auth-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.auth-chart-head strong { font-size: 15px; }
.auth-chart-head span { display: inline-flex; align-items: center; gap: 8px; color: #a1a1aa; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.auth-chart-head i { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; }
.auth-chart svg { display: block; width: 100%; height: 220px; }
.auth-grid line { stroke: #1f1f23; stroke-dasharray: 3 5; }
.auth-axis text { fill: #52525b; font-size: 11px; font-weight: 600; text-anchor: end; }
.auth-line { fill: none; stroke: #22c55e; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.auth-area { fill: rgba(34,197,94,.08); opacity: 0; }
.auth-slide.on .auth-line { animation: auth-draw 1.6s .2s ease forwards; }
.auth-slide.on .auth-area { animation: auth-fade 1s 1s ease forwards; }
@keyframes auth-draw { to { stroke-dashoffset: 0; } }
@keyframes auth-fade { to { opacity: 1; } }
.auth-hours { display: flex; justify-content: space-between; padding: 6px 4px 0 40px; color: #52525b; font-size: 11px; font-weight: 600; }

.auth-list { display: grid; gap: 10px; }
.auth-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #1f1f23; border-radius: 14px; background: #0d0d10; }
.auth-item > div { flex: 1; min-width: 0; }
.auth-item strong { display: block; font-size: 14px; }
.auth-item small { color: #71717a; font-size: 12px; }
.auth-item b { font-size: 14px; }
.auth-av { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #1f1f23; color: #d4d4d8; font-size: 13px; font-weight: 700; }
.auth-av.t { border-radius: 10px; }
.auth-pill { padding: 3px 10px; border: 1px solid rgba(34,197,94,.3); border-radius: 999px; background: rgba(34,197,94,.08); color: #4ade80; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; }
.auth-pill.y { border-color: rgba(234,179,8,.3); background: rgba(234,179,8,.08); color: #facc15; }
.auth-slide.on .auth-item { animation: auth-rise .5s ease both; }
.auth-slide.on .auth-item:nth-child(2) { animation-delay: .08s; }
.auth-slide.on .auth-item:nth-child(3) { animation-delay: .16s; }
.auth-slide.on .auth-item:nth-child(4) { animation-delay: .24s; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.auth-caption { margin: 18px 0 0; color: #52525b; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .auth-slide, .auth-dots i { transition: none; }
  .auth-slide.on .auth-line, .auth-slide.on .auth-area, .auth-slide.on .auth-item { animation: none; }
  .auth-line { stroke-dashoffset: 0; }
  .auth-area { opacity: 1; }
}
@media (max-width: 980px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-right { display: none; }
}
@media (max-width: 420px) {
  .auth-otp { gap: 6px; }
  .auth-otp input { font-size: 19px; border-radius: 10px; }
}

/* Cadastro (/cadastro): name + workspace, terms checkbox, link back to login. */
.auth-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.auth-form .auth-fields input { margin: 0; }
.auth-check { display: flex !important; align-items: flex-start; gap: 10px; margin: 16px 0 0 !important; color: #8b8b94 !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; line-height: 1.5; cursor: pointer; }
.auth-form .auth-check input { width: 16px; height: 16px; margin-top: 2px; padding: 0; flex: none; accent-color: #fff; }
.auth-check a { color: #d4d4d8; }
.auth-switch { margin: 18px 0 0; color: #71717a; font-size: 13.5px; }
.auth-switch a { color: #fff; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .auth-fields { grid-template-columns: minmax(0, 1fr); } }
