/* =========================================================
   DARKNESS CHEATS — login / cadastro
   Layout split inspirado na referência, com a marca e o
   mascote da DARKNESS.
   ========================================================= */

.auth-body {
  min-height: 100vh;
  padding-bottom: 0;
  background: #0a0a0a;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
}

/* ---------- BANNER (mascote) ---------- */
.auth-banner {
  position: relative;
  width: 50%;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 50% 105%, rgba(163, 242, 75, 0.14), transparent 58%),
    #050505;
  isolation: isolate;
}

.auth-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 70% at 50% 55%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 55%, #000 20%, transparent 78%);
  opacity: 0.7;
}

.auth-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(100% 80% at 50% 100%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.auth-banner-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1);
  transform-origin: center bottom;
  filter: drop-shadow(0 0 45px rgba(163, 242, 75, 0.18));
}

.auth-banner-overlay {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.45) 72%, rgba(0, 0, 0, 0.82) 100%);
}

.auth-brand { gap: 12px; }
.auth-brand .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}
.auth-brand .brand-mark svg { width: 32px; height: 32px; }
.auth-brand .brand-text strong { font-size: 19px; }

.auth-banner-logo { margin-bottom: 24px; }

.auth-banner-title {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.auth-banner-title span { color: var(--accent); }

.auth-banner-sub {
  margin: 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.auth-features {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.auth-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(163, 242, 75, 0.5);
}

/* ---------- FORMULÁRIO ---------- */
.auth-form-panel {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
}

.auth-form-inner {
  width: 100%;
  max-width: 440px;
  animation: authIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.auth-head { margin-bottom: 32px; }

.auth-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-sub {
  margin: 0;
  font-size: 14px;
  color: var(--accent);
}

.auth-social {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #ccc;
  font: 600 14px "Inter", sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.auth-social:hover {
  border-color: #444;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #222;
}
.auth-divider span { font-size: 12px; color: #555; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field { display: flex; flex-direction: column; gap: 5px; }

.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: #b0b0b0;
}

.auth-input-wrap { position: relative; display: flex; align-items: center; }

.auth-input-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  display: flex;
  color: #555;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 13px 40px 13px 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fff;
  font: 400 14px "Inter", sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-input::placeholder { color: #3e3e3e; }

.auth-eye {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}
.auth-eye:hover,
.auth-eye.is-on { color: var(--accent); }

.auth-hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: #777;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  user-select: none;
}

.auth-box {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.auth-box:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.auth-link {
  padding: 0;
  background: none;
  border: none;
  color: var(--accent);
  font: 400 13px "Inter", sans-serif;
  cursor: pointer;
  transition: color 0.2s;
}
.auth-link:hover { color: #b8ff5c; }

.auth-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #0a0a0a;
  font: 800 15px "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.auth-submit:hover:not(:disabled) {
  background: #b8ff5c;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(163, 242, 75, 0.3);
}
.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-error {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  color: #f87171;
  font-size: 13px;
}

.auth-switch {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  color: #666;
}
.auth-switch a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #777;
  cursor: pointer;
  user-select: none;
}
.auth-terms .auth-box { margin-top: 1px; }
.auth-terms a { color: var(--accent); text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  color: #666;
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.2s;
}
.auth-back:hover { color: #fff; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .auth-shell { flex-direction: column; }

  .auth-banner {
    order: -1;
    width: 100%;
    min-height: 0;
    height: 250px;
  }
  .auth-banner-img {
    transform: none;
    object-fit: cover;
    object-position: center 18%;
  }
  .auth-banner-overlay {
    min-height: 0;
    height: 100%;
    padding: 18px 22px;
    justify-content: flex-end;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45) 42%, rgba(6, 6, 6, 0.97)),
      linear-gradient(90deg, rgba(6, 6, 6, 0.85), rgba(6, 6, 6, 0.3) 58%, transparent);
  }
  .auth-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .auth-brand .brand-mark svg { width: 26px; height: 26px; }
  .auth-brand .brand-text strong { font-size: 16px; }
  .auth-brand .brand-text small { font-size: 8.5px; }
  .auth-banner-logo { margin-bottom: 12px; }
  .auth-banner-title { font-size: 21px; line-height: 1.18; }
  .auth-banner-sub { font-size: 13px; line-height: 1.45; max-width: 100%; }
  .auth-features { display: none; }

  .auth-form-panel {
    width: 100%;
    align-items: flex-start;
    padding: 32px 24px 52px;
  }
  .auth-form-inner { margin: 0 auto; }
}

@media (max-width: 420px) {
  .auth-form-panel { padding: 26px 18px 44px; }
  .auth-title { font-size: 23px; }
  .auth-banner { height: 220px; }
}
