* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #1F2937;
}
.login-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(139,92,246,0.25), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99,102,241,0.2), transparent 50%),
    linear-gradient(135deg, #FAFAFA 0%, #F3F4F6 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  background: white; border-radius: 24px;
  width: 100%; max-width: 420px;
  padding: 48px 36px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}
.login-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 32px;
}
.login-logo span { font-size: 36px; }
.login-logo h1 {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tela { display: none; }
.tela.ativa { display: block; animation: fadeIn .3s; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:translateY(0);} }
.tela h2 {
  font-size: 24px; font-weight: 700; margin-bottom: 6px; text-align: center;
}
.tela .sub {
  color: #6B7280; font-size: 14px; margin-bottom: 24px; text-align: center;
}
form { display: flex; flex-direction: column; gap: 12px; }
input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid #E5E7EB; border-radius: 12px;
  font-size: 15px; font-family: inherit;
  transition: border .2s;
}
input:focus { outline: none; border-color: #8B5CF6; }
#formCod input {
  font-size: 28px; text-align: center; letter-spacing: 8px;
  font-weight: 700;
}
.btn {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  color: white; border: none; padding: 14px 24px;
  border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,92,246,0.4); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.msg { font-size: 14px; min-height: 20px; text-align: center; margin-top: 8px; }
.msg.success { color: #10B981; }
.msg.error { color: #EF4444; }
.footer-text {
  margin-top: 24px; font-size: 13px;
  text-align: center; color: #9CA3AF;
}
.footer-text a { color: #8B5CF6; text-decoration: none; font-weight: 600; }
