:root {
  --bg-dark: #0B0F19;
  --panel-dark: #111827;
  --card-dark: #1F2937;
  --line-dark: #374151;
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --purple: #8B5CF6;
  --purple-glow: rgba(139, 92, 246, 0.15);
  --indigo: #6366F1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

/* Painel Esquerdo - Branding */
.brand-panel {
  position: relative;
  overflow: hidden;
  padding: 48px clamp(36px, 6vw, 96px);
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.18) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%),
              linear-gradient(160deg, #0F172A 0%, #0B0F19 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #FFFFFF;
}

.brand-mark-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 14px rgba(16, 185, 129, 0.35));
}

.brand strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--emerald);
  margin-top: 1px;
}

.brand-copy {
  margin-top: clamp(40px, 8vh, 80px);
}

.eyebrow {
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.brand-copy h1 {
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #FFFFFF;
}

.brand-copy h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--emerald) 0%, #60A5FA 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-copy > p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
}

/* Cards das Personas */
.personas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0;
}

.persona-card {
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.25s ease;
}

.persona-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.persona-card.luluzinha:hover {
  box-shadow: 0 8px 24px var(--purple-glow);
  border-color: rgba(139, 92, 246, 0.4);
}

.persona-card.bolinha:hover {
  box-shadow: 0 8px 24px var(--emerald-glow);
  border-color: rgba(16, 185, 129, 0.4);
}

.persona-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}

.luluzinha .persona-badge {
  background: rgba(236, 72, 153, 0.15);
  color: #F472B6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.bolinha .persona-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.persona-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.persona-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.protection {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  color: #E2E8F0;
  font-size: 12px;
}

.shield-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
  flex-shrink: 0;
}

.protection strong {
  display: block;
  color: #FFFFFF;
}

.protection small {
  color: var(--text-muted);
}

/* Painel Direito - Formulário */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-dark);
}

.login-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--panel-dark);
  border: 1px solid var(--line-dark);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.eyebrow-accent {
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.login-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.login-header .intro {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 12px;
  font-weight: 700;
  color: #D1D5DB;
  letter-spacing: 0.02em;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: #6B7280;
  pointer-events: none;
  transition: color 0.2s;
}

.input-wrapper input {
  width: 100%;
  background: #1F2937;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 13px 14px 13px 44px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.input-wrapper input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-glow);
  background: #111827;
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
  color: var(--emerald);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
  margin-top: 6px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.local-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #6B7280;
  text-align: center;
  margin-top: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .brand-panel {
    padding: 32px 24px;
  }
  .personas-grid {
    grid-template-columns: 1fr;
  }
  .login-panel {
    padding: 32px 20px;
  }
}
