/* ============================================================
   Tavares Tech — Login & Recuperar Senha
   Páginas standalone (sem header/footer do tema)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body.tt-auth-body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: #0A0C10;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout split ─────────────────────────────────────────── */
.tt-auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Painel esquerdo (brand) ──────────────────────────────── */
.tt-auth-brand {
  width: 42%;
  flex-shrink: 0;
  background: #0A0C10;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.tt-auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 75%);
}

.tt-auth-brand::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7,125,184,.22) 0%, transparent 70%);
  pointer-events: none;
}

.tt-auth-brand__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem;
  width: 100%;
}

/* Grupo logo + texto: centralizado verticalmente (margin auto absorve o espaço
   acima e abaixo). O rodapé fica naturalmente na base. */
.tt-auth-brand__main {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.tt-auth-logo {
  display: block;
  height: 2.25rem;
  width: auto;
}

.tt-auth-brand__copy {
  padding: 0;
}

.tt-auth-brand__heading {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
}

.tt-auth-brand__heading em {
  font-style: normal;
  color: #2BA3D9;
}

.tt-auth-brand__subtext {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin: 0 0 2rem;
  max-width: 320px;
}

.tt-auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.tt-auth-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}

.tt-auth-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(7,125,184,.2);
  border: 1px solid rgba(43,163,217,.4);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232BA3D9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.tt-auth-brand__footer {
  font-size: .75rem;
  color: rgba(255,255,255,.2);
}

/* ── Painel direito (form) ────────────────────────────────── */
.tt-auth-form-panel {
  flex: 1;
  background: #F5F7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  position: relative;
}

.tt-auth-form-inner {
  width: 100%;
  max-width: 420px;
}

.tt-auth-back {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .8rem;
  font-weight: 600;
  color: #6B7280;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color .15s;
}

.tt-auth-back:hover { color: #0A0C10; }

.tt-auth-form-title {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  color: #0A0C10;
  margin: 0 0 .375rem;
  letter-spacing: -.02em;
}

.tt-auth-form-sub {
  font-size: .9rem;
  color: #6B7280;
  margin: 0 0 2rem;
}

/* ── Campos ───────────────────────────────────────────────── */
.tt-auth-field {
  margin-bottom: 1.125rem;
}

.tt-auth-label {
  display: block;
  font-size: .825rem;
  font-weight: 600;
  color: #3A3F4A;
  margin-bottom: .4rem;
}

.tt-auth-input {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: .75rem;
  border: 1.5px solid #E2E6EC;
  background: #ffffff;
  color: #0A0C10;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .9375rem;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.tt-auth-input:focus {
  border-color: #077DB8;
  box-shadow: 0 0 0 3px rgba(7,125,184,.15);
}

.tt-auth-input::placeholder { color: #b0b7c3; }

.tt-auth-input--error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

/* Campo de senha com olho */
.tt-password-wrap {
  position: relative;
}

.tt-password-wrap .tt-auth-input {
  padding-right: 3rem;
}

.tt-eye-btn {
  position: absolute;
  right: .875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: .25rem;
  border-radius: .375rem;
  transition: color .15s;
  display: flex;
  align-items: center;
}

.tt-eye-btn:hover { color: #077DB8; }

/* ── Lembrar / Esqueci ────────────────────────────────────── */
.tt-auth-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: .5rem;
}

.tt-checkbox-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8375rem;
  color: #3A3F4A;
  cursor: pointer;
  user-select: none;
}

.tt-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: .25rem;
  border: 1.5px solid #E2E6EC;
  accent-color: #077DB8;
  cursor: pointer;
  flex-shrink: 0;
}

.tt-forgot-link {
  font-size: .8375rem;
  font-weight: 600;
  color: #077DB8;
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}

.tt-forgot-link:hover { color: #055E8C; }

/* ── Botão submit ─────────────────────────────────────────── */
.tt-auth-submit {
  width: 100%;
  padding: .875rem 1.5rem;
  border-radius: .875rem;
  border: none;
  background: #077DB8;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .15s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}

.tt-auth-submit:hover:not(:disabled) {
  background: #055E8C;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(7,125,184,.5);
}

.tt-auth-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.tt-auth-submit .tt-btn-loading { display: none; }
.tt-auth-submit.is-loading .tt-btn-text   { display: none; }
.tt-auth-submit.is-loading .tt-btn-loading { display: inline; }

/* ── Mensagens ────────────────────────────────────────────── */
.tt-auth-msg {
  padding: .875rem 1rem;
  border-radius: .75rem;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: none;
}

.tt-auth-msg.is-visible { display: block; }
.tt-auth-msg--error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.tt-auth-msg--success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }

/* ── Footer do form ───────────────────────────────────────── */
.tt-auth-form-footer {
  text-align: center;
  margin-top: 1.75rem;
  font-size: .8125rem;
  color: #6B7280;
}

.tt-auth-form-footer a {
  color: #077DB8;
  font-weight: 600;
  text-decoration: none;
}

/* ── Divisor ─────────────────────────────────────────────── */
.tt-auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: #E2E6EC;
  font-size: .75rem;
  font-weight: 600;
  color: #6B7280;
}

.tt-auth-divider::before,
.tt-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E6EC;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .tt-auth-layout { flex-direction: column; }

  .tt-auth-brand {
    width: 100%;
    min-height: 220px;
  }

  .tt-auth-brand__inner { padding: 1.75rem 1.5rem; }
  .tt-auth-brand__main { gap: 1.25rem; }
  .tt-auth-brand__copy { padding: 0; }
  .tt-auth-brand__heading { font-size: 1.625rem; }
  .tt-auth-features { display: none; }
  .tt-auth-brand__footer { display: none; }

  .tt-auth-form-panel { padding: 2rem 1.25rem 3rem; }
}

@media (max-width: 480px) {
  .tt-auth-extras { flex-direction: column; align-items: flex-start; }
}
