/* Auth (login/cadastro) — layout alinhado ao AuthPage do ddtank.io */

.auth-body {
  margin: 0;
  min-height: 100vh;
  /* Mesmo tom base da home (.hero) */
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 80, 0, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 80%, rgba(204, 34, 0, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 85%, rgba(255, 160, 0, 0.08) 0%, transparent 48%),
    linear-gradient(180deg, #0a0a0f 0%, #050508 55%, #050508 100%) !important;
  overflow-x: hidden;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px 48px;
  padding-top: 12px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  position: relative;
  overflow: hidden;
}

.auth-grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(rgba(255, 106, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 106, 0, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.auth-glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  top: auto;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 960px;
  height: 520px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 106, 0, 0.2) 0%, transparent 62%);
  pointer-events: none;
}

.auth-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: -12px auto 0;
  animation: auth-fade-up 0.45s ease both;
}

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

.auth-logo-wrap {
  text-align: center;
  line-height: 0;
  margin-bottom: -28px;
}

.auth-logo-wrap a {
  display: inline-block;
  line-height: 0;
}

.auth-logo {
  /* Fallbacks primeiro: sem min()/clamp() o logo não pode usar largura intrínseca gigante */
  width: 90%;
  max-width: 260px;
  height: auto;
  max-height: 140px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: 50% 0%;
  -webkit-clip-path: inset(0 0 7% 0);
  clip-path: inset(0 0 7% 0);
  filter: drop-shadow(0 0 36px rgba(255, 106, 0, 0.65));
}

@supports (width: min(1px, 2px)) {
  .auth-logo {
    width: min(420px, 90vw);
    max-width: 420px;
    max-height: 240px;
  }
}

@supports (height: clamp(1px, 2px, 3px)) {
  .auth-logo {
    max-height: clamp(120px, 28vw, 220px);
  }
}

@supports (margin: clamp(0px, 1px, 2px)) {
  .auth-logo-wrap {
    margin-bottom: clamp(-48px, -8vw, -22px);
  }
}

.auth-card {
  position: relative;
  margin-top: -12px;
  background: linear-gradient(180deg, #101018 0%, #0a0a10 48%, #06060c 100%);
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 20px;
  padding: 8px 8px 28px;
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 56px rgba(255, 106, 0, 0.08);
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 160, 80, 0.4), transparent);
  pointer-events: none;
}

.auth-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 14px 16px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

.auth-tabs > * + * {
  margin-left: 4px;
}

@supports (gap: 1px) {
  .auth-tabs > * + * {
    margin-left: 0;
  }
}

.auth-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.4px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  background: transparent;
  color: #6c6c7c;
}

.auth-tab.active {
  background: linear-gradient(135deg, #ff6a00, #cc2200);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-tab:hover:not(.active) {
  color: #a8a8b8;
}

.auth-card-body {
  position: relative;
  z-index: 1;
  padding: 4px 22px 2px;
}

.auth-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #4ade80;
  margin-bottom: 18px;
  line-height: 1.5;
}

.auth-h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #f8f8fc;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.auth-sub {
  color: #8a8a9a;
  font-size: 13px;
  margin: 0 0 20px;
  line-height: 1.5;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field-tight {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #6e6e7e;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.auth-label-row .auth-label {
  margin-bottom: 0;
}

.auth-forgot {
  font-size: 12px;
  color: #ff6a00;
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(6, 6, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  padding: 12px 14px;
  color: #f0f0f6;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input:focus {
  background: rgba(8, 8, 16, 0.95);
  border-color: rgba(255, 106, 0, 0.5);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 106, 0, 0.12);
}

.auth-input::placeholder {
  color: #555;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .auth-input {
  padding-right: 52px;
}

.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #7a7a8a;
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  box-sizing: border-box;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 16px;
}

.auth-eye:hover {
  color: #ccc;
}

.auth-err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ef4444;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.auth-err > * + * {
  margin-left: 8px;
}

@supports (gap: 1px) {
  .auth-err > * + * {
    margin-left: 0;
  }
}

.auth-btn {
  width: 100%;
  padding: 13px 12px;
  background: linear-gradient(135deg, #ff6a00, #cc2200);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255, 106, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 14px;
  font-family: inherit;
}

.auth-btn > * + * {
  margin-left: 14px;
}

@supports (gap: 1px) {
  .auth-btn > * + * {
    margin-left: 0;
  }
}

.auth-btn-play {
  width: 18px;
  height: 18px;
  object-fit: contain;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.auth-btn .auth-btn-slot .auth-btn-play,
.auth-btn .auth-btn-slot .auth-btn-ico {
  margin-right: 14px;
  letter-spacing: normal;
}

.auth-btn-ico {
  font-size: 16px;
}

@supports (gap: 1px) {
  .auth-btn .auth-btn-slot .auth-btn-play,
  .auth-btn .auth-btn-slot .auth-btn-ico {
    margin-right: 0;
  }
}

.auth-btn-text {
  display: inline-block;
  line-height: 1.2;
}

.auth-btn-loading {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.08em;
}

.auth-btn-loading > .fa-solid {
  margin-right: 12px;
}

@supports (gap: 1px) {
  .auth-btn-loading > .fa-solid {
    margin-right: 0;
  }
}

.auth-btn-loading-text {
  display: inline-block;
  line-height: 1.2;
}

.auth-btn:hover {
  opacity: 0.96;
}

.auth-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Um único .auth-btn-slot: texto de loading é aplicado por JS (evita dois spans no launcher). */
.auth-btn .auth-btn-slot {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 14px;
  letter-spacing: 0.08em;
}

.auth-btn .auth-btn-slot > * + * {
  margin-left: 14px;
}

@supports (gap: 1px) {
  .auth-btn .auth-btn-slot > * + * {
    margin-left: 0;
  }
}

.auth-btn[disabled] {
  opacity: 0.88;
  cursor: wait;
  pointer-events: none;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  color: #7a7a8c;
  margin-bottom: 18px;
  line-height: 1.55;
}

.auth-terms > * + * {
  margin-left: 12px;
}

@supports (gap: 1px) {
  .auth-terms > * + * {
    margin-left: 0;
  }
}

.auth-terms > span {
  word-spacing: 0.06em;
  letter-spacing: 0.02em;
}

.auth-terms input {
  width: 16px;
  height: 16px;
  accent-color: #ff6a00;
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-terms a {
  color: #ff6a00;
  text-decoration: none;
  letter-spacing: 0.04em;
  word-spacing: 0.14em;
  padding: 0 4px;
  margin: 0 1px;
}

.auth-terms a:hover {
  text-decoration: underline;
}

.auth-hint {
  color: #555;
  font-weight: 500;
  text-transform: none;
  font-size: 10px;
  letter-spacing: 0;
}

.auth-strength {
  margin-top: 6px;
}

.auth-strength-bars {
  display: flex;
  gap: 4px;
}

.auth-strength-bars > * + * {
  margin-left: 4px;
}

@supports (gap: 1px) {
  .auth-strength-bars > * + * {
    margin-left: 0;
  }
}

.auth-strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

.auth-strength-label {
  font-size: 10px;
  margin-top: 3px;
  font-weight: 600;
}

.auth-back {
  text-align: center;
  margin-top: 22px;
}

.auth-back--login-only {
  margin-top: 18px;
}

.auth-back--split {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

@media (min-width: 420px) {
  .auth-back--split {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px 36px;
  }
}

.auth-back--split > * + * {
  margin-top: 14px;
  margin-left: 0;
}

@media (min-width: 420px) {
  .auth-back--split > * + * {
    margin-top: 0;
    margin-left: 20px;
  }
}

@supports (gap: 1px) {
  .auth-back--split > * + * {
    margin-left: 0;
    margin-top: 0;
  }
}

.auth-back-sep {
  color: #4a4a58;
  font-weight: 700;
  -webkit-user-select: none;
  user-select: none;
  padding: 0 4px;
}

@media (max-width: 419px) {
  .auth-back-sep {
    display: none;
  }
}

.auth-back a {
  color: #5c5c6c;
  font-size: 13px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 6px;
  line-height: 1.35;
}

.auth-back a .fa-solid {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 1.15em;
  text-align: center;
  margin-right: 12px;
}

@supports (gap: 1px) {
  .auth-back a .fa-solid {
    margin-right: 0;
  }
}

.auth-back a > * + * {
  margin-left: 12px;
}

@supports (gap: 1px) {
  .auth-back a > * + * {
    margin-left: 0;
  }
}

.auth-back a:hover {
  color: #9a9aac;
}

.auth-pane {
  display: none;
}

.auth-pane.is-active {
  display: block;
}

.auth-logger {
  font-size: 14px;
  color: #8c8c9c;
  text-align: center;
  line-height: 1.5;
}

.auth-logger a {
  color: #ff6a00;
  font-weight: 700;
}
