/*
  ZapBot — Login / Cadastro
  Estilos específicos da página de login. Tokens de cor/tipografia/botões
  compartilhados ficam em assets/css/theme.css (carregado antes deste arquivo).
*/

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(46,204,143,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(155deg, var(--signal) 0%, var(--signal-dim) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px -4px rgba(46,204,143,0.55);
}

.brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand-name span { color: var(--signal-strong); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.card-header { display: flex; flex-direction: column; gap: 6px; }
.card-header h1 { font-size: 1.4rem; color: var(--text); }
.card-header p  { font-size: 0.88rem; color: var(--text-faint); line-height: 1.5; }

.tabs {
  display: flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}
.tab {
  flex: 1;
  padding: 8px 0;
  font-size: 0.83rem;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  background: none;
  color: var(--text-faint);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.tab.active { background: var(--surface-2); color: var(--text); }

.fields { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(46,204,143,0.12); }
.field input::placeholder { color: var(--text-faint); }

.card .btn-primary { width: 100%; }

.error-msg {
  font-size: 0.82rem;
  color: var(--danger);
  background: rgba(224,96,95,.08);
  border: 1px solid rgba(224,96,95,.2);
  border-radius: 8px;
  padding: 10px 14px;
  display: none;
  line-height: 1.4;
}
.success-msg {
  font-size: 0.82rem;
  color: var(--signal-strong);
  background: rgba(46,204,143,.08);
  border: 1px solid rgba(46,204,143,.2);
  border-radius: 8px;
  padding: 10px 14px;
  display: none;
  line-height: 1.4;
}

.footer-links { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.back-link { font-size: 0.82rem; color: var(--text-faint); transition: color .15s; }
.back-link:hover { color: var(--signal-strong); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-faint);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  position: relative;
  z-index: 1;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal-strong);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
