/* ============================================================
   BT GAMES — Auth CSS (tema claro)
   login / cadastro / verificação / recuperar senha
   ============================================================ */

/* ── WRAPPER ────────────────────────────────────────────────── */
.auth-wrapper {
  display: flex;
  min-height: calc(100vh - 52px);
  position: relative;
  z-index: var(--z-card);
}

/* ── PAINEL ESQUERDO — BRANDING (escuro, mantém identidade) ─── */
.auth-brand {
  flex: 0 0 42%;
  background: linear-gradient(150deg, #142448 0%, #1B2F5E 55%, #1a3060 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244,121,32,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,121,32,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.auth-brand::after {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(244,121,32,.18) 0%, transparent 70%);
  pointer-events: none;
}

.brand-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
}

/* ── PHONE MOCKUP ────────────────────────────────────────────── */
.phone-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 290px; height: 490px;
}

.phone-glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(244,121,32,.25) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.phone-frame {
  width: 220px; height: 445px;
  background: #ffffff;
  border-radius: 42px;
  border: 8px solid #1B2F5E;
  position: relative;
  box-shadow:
    0 0 0 2px rgba(244,121,32,.35),
    0 36px 72px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}

.phone-island {
  width: 82px; height: 24px;
  background: #000;
  border-radius: 0 0 18px 18px;
  flex-shrink: 0; z-index: 2;
}

.phone-screen {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px 20px 8px; gap: 14px;
}

.phone-logo {
  width: 160px;
}

.phone-bar {
  width: 80px; height: 4px;
  background: rgba(27,47,94,.2);
  border-radius: 2px; margin-bottom: 14px; flex-shrink: 0;
}

/* ── PAINEL DIREITO — FORMULÁRIO (claro) ────────────────────── */
.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 28px;
  overflow-y: auto;
  background: var(--bg-root);
}

.auth-card {
  width: 100%; max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
}

/* ── CABEÇALHO DO CARD ──────────────────────────────────────── */
.auth-card-header { margin-bottom: 28px; }

.card-logo-mobile {
  display: none; width: 180px; margin-bottom: 20px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900;
  color: var(--text-primary); letter-spacing: .3px; line-height: 1.1;
}
.auth-subtitle {
  font-size: 14px; color: var(--text-muted); margin-top: 6px;
}

/* ── TIPO SELECTOR ──────────────────────────────────────────── */
.tipo-selector {
  display: flex; gap: 8px; margin-bottom: 26px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 5px;
}
.tipo-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 7px; padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700;
  color: var(--text-muted); border: 2px solid transparent;
  transition: all var(--t-base); cursor: pointer; background: none;
}
.tipo-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.tipo-btn.active {
  background: var(--orange); color: #fff;
  box-shadow: 0 3px 10px var(--orange-glow);
}
.tipo-icon { font-size: 17px; }

/* ── GRID ───────────────────────────────────────────────────── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 14px; margin-bottom: 20px;
}
.field-group       { display: flex; flex-direction: column; gap: 5px; }
.field-group.full  { grid-column: 1 / -1; }
.field-group.half  { grid-column: span 1; }

/* ── CAMPOS ─────────────────────────────────────────────────── */
.field-label {
  font-size: 11.5px; font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: .5px; text-transform: uppercase;
}
.required { color: var(--orange); margin-left: 2px; }

.field-wrap {
  position: relative; display: flex; align-items: center;
}
.field-icon {
  position: absolute; left: 11px; font-size: 15px;
  pointer-events: none; z-index: 2; line-height: 1;
}
.field-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 11px 12px 11px 38px;
  font-size: 14px; color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  outline: none;
}
.field-input::placeholder { color: var(--text-dim); }
.field-input:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px var(--orange-glow2);
}
.field-input.is-error { border-color: var(--border-error); background: #fff5f5; }
.field-input.is-ok    { border-color: var(--border-ok); }

.toggle-pwd {
  position: absolute; right: 10px; font-size: 15px;
  padding: 4px 6px; opacity: .45;
  transition: opacity var(--t-fast); border-radius: var(--r-xs);
}
.toggle-pwd:hover { opacity: .9; }

.field-status { position: absolute; right: 12px; font-size: 14px; }

.field-error {
  font-size: 11.5px; color: var(--color-error);
  font-weight: 600; min-height: 15px; display: block;
}
.field-hint { font-size: 11px; color: var(--text-dim); }

/* ── FORÇA DA SENHA ─────────────────────────────────────────── */
.pwd-strength { display: flex; align-items: center; gap: 8px; }
.pwd-bar {
  flex: 1; height: 4px;
  background: var(--bg-hover); border-radius: var(--r-full); overflow: hidden;
}
.pwd-bar span {
  display: block; height: 100%; border-radius: var(--r-full);
  transition: width .4s ease, background .4s ease; width: 0%;
}
#pwd-label { font-size: 11px; font-weight: 700; white-space: nowrap; }

/* ── CHECKBOX TERMOS ────────────────────────────────────────── */
.check-terms {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; margin-bottom: 22px; margin-top: 4px;
}
.check-terms input[type="checkbox"] { display: none; }
.check-box {
  flex-shrink: 0; width: 18px; height: 18px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-xs); background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px; transition: all var(--t-fast);
}
.check-terms input:checked + .check-box {
  background: var(--orange); border-color: var(--orange);
}
.check-terms input:checked + .check-box::after {
  content: '✓'; color: #fff; font-size: 11px; font-weight: 900;
}
.check-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.link-termos { color: var(--orange); font-weight: 600; }

/* ── BOTÃO SUBMIT ───────────────────────────────────────────── */
.btn-submit {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 24px;
  background: var(--orange); color: #fff;
  border: none; border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 17px; font-weight: 900;
  letter-spacing: .8px; text-transform: uppercase;
  cursor: pointer; transition: all var(--t-base);
  box-shadow: var(--shadow-orange); margin-bottom: 20px;
}
.btn-submit:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,121,32,.38);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── RODAPÉ DO CARD ─────────────────────────────────────────── */
.auth-switch {
  text-align: center; font-size: 13.5px; color: var(--text-muted);
}
.auth-switch-link { color: var(--orange); font-weight: 700; }

/* ── VERIFICAÇÃO ────────────────────────────────────────────── */
.verify-card { max-width: 460px; text-align: center; }
.verify-icon {
  font-size: 52px; margin-bottom: 16px; display: block;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.07)} }

.code-inputs {
  display: flex; gap: 10px; justify-content: center;
  margin: 28px 0 20px;
}
.code-digit {
  width: 52px; height: 60px;
  background: var(--bg-input);
  border: 2px solid var(--border-strong);
  border-radius: var(--r-sm); text-align: center;
  font-size: 26px; font-weight: 800;
  color: var(--navy); font-family: var(--font-display);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  caret-color: var(--orange);
}
.code-digit:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow2);
  background: #fff;
}
.code-digit.filled { border-color: var(--orange); color: var(--orange); }

.resend-link {
  background: none; border: none; color: var(--orange);
  font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: underline; transition: opacity var(--t-fast);
}
.resend-link:hover { opacity: .7; }
.resend-link:disabled { opacity: .4; cursor: not-allowed; text-decoration: none; }

/* ── RESPONSIVO (páginas antigas) ───────────────────────────── */
@media (max-width: 900px) {
  .auth-brand { display: none; }
  .auth-panel { padding: 24px 16px 32px; }
  .auth-card  { padding: 28px 22px; border-radius: var(--r-lg); }
  .card-logo-mobile { display: block; }
}
@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
  .field-group.half { grid-column: 1 / -1; }
  .code-digit { width: 42px; height: 52px; font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════════
   LAYOUT DE LOGIN — inspirado no Letzplay
   ════════════════════════════════════════════════════════════════ */

body.page-login { background: #e8eef6; }

.login-page {
  min-height: 100vh;
  background: #e8eef6;
  display: flex;
  align-items: stretch;
}

/* ── LADO ESQUERDO: CELULAR ─────────────────────────────────── */
.login-visual {
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 40px 60px;
}

.celular-img {
  width: 100%;
  max-width: 400px;
  max-height: 88vh;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(27,47,94,.22));
}

/* ── LADO DIREITO: FORMULÁRIO ───────────────────────────────── */
.login-form-side {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 52px;
  background: #ffffff;
  box-shadow: -4px 0 40px rgba(27,47,94,.08);
}

/* ── LOGO ───────────────────────────────────────────────────── */
.lf-logo {
  height: 48px;
  width: auto;
  margin-bottom: 36px;
}

/* ── TÍTULO ─────────────────────────────────────────────────── */
.lf-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: .2px;
}

/* ── CAMPOS ─────────────────────────────────────────────────── */
.lf-field {
  margin-bottom: 14px;
}

.lf-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d0d8e8;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  background: #f8fafc;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  box-sizing: border-box;
}
.lf-input::placeholder { color: #a0aec0; }
.lf-input:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(244,121,32,.1);
}
.lf-input.is-error { border-color: var(--border-error); }

.lf-pwd-wrap {
  position: relative;
}
.lf-pwd-wrap .lf-input {
  padding-right: 44px;
}
.lf-toggle-pwd {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 16px; cursor: pointer;
  opacity: .45; transition: opacity var(--t-fast);
  line-height: 1; padding: 2px;
}
.lf-toggle-pwd:hover { opacity: .85; }

/* ── BOTÃO ──────────────────────────────────────────────────── */
.lf-btn {
  width: 100%; margin-top: 8px;
  padding: 14px;
  background: var(--orange);
  color: #fff; border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 900;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 14px rgba(244,121,32,.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lf-btn:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244,121,32,.4);
}
.lf-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── LINKS ──────────────────────────────────────────────────── */
.lf-links {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.lf-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.lf-link strong { color: var(--orange); font-weight: 700; }
.lf-link:hover { color: var(--text-primary); }

/* ── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .login-page       { flex-direction: column; }
  .login-visual     { flex: none; padding: 40px 20px 0; }
  .celular-img      { max-width: 260px; max-height: 40vh; }
  .login-form-side  { flex: none; padding: 36px 28px 48px; box-shadow: none; }
}
@media (max-width: 480px) {
  .celular-img     { max-width: 180px; }
  .login-form-side { padding: 28px 20px 40px; }
  .lf-logo         { height: 38px; margin-bottom: 24px; }
}
