/* ============================================
   login.css — Tela de login
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #FBE9DC 0%, #EEEDFE 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 40px rgba(83,74,183,0.12);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .logo-circulo {
  width: 52px; height: 52px;
  background: #E8621A;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.login-logo h1 {
  font-size: 20px;
  font-weight: 800;
  color: #1E1B2E;
  letter-spacing: -0.3px;
}
.login-logo h1 span { color: #E8621A; }
.login-logo p {
  font-size: 13px;
  color: #5F5E5A;
  margin-top: 4px;
}

.form-grupo {
  margin-bottom: 16px;
}
.form-grupo label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #5F5E5A;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.form-grupo input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E8E7F0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1E1B2E;
  background: #FAFAFA;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-grupo input:focus {
  border-color: #534AB7;
  background: #fff;
}
.form-grupo input.erro { border-color: #E24B4A; }

.btn-login {
  width: 100%;
  padding: 13px;
  background: #E8621A;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-login:hover { background: #c9541a; transform: translateY(-1px); }
.btn-login:disabled { background: #ccc; cursor: not-allowed; transform: none; }

.login-erro {
  background: #FCEBEB;
  border: 1px solid #F09595;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #791F1F;
  margin-bottom: 16px;
  display: none;
}
.login-erro.visivel { display: block; }

.login-sucesso {
  background: #EAF3DE;
  border: 1px solid #9FE1CB;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #0F6E56;
  margin-bottom: 16px;
  display: none;
}
.login-sucesso.visivel { display: block; }

.link-esqueci {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}
.link-esqueci a {
  color: #534AB7;
  text-decoration: none;
  font-weight: 500;
}
.link-esqueci a:hover { text-decoration: underline; }

.login-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 11px;
  color: #9B99A6;
}
.login-footer a { color: #E8621A; text-decoration: none; }

/* Loading spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn-login.carregando .spinner { display: block; }
.btn-login.carregando .btn-txt { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 440px) {
  .login-box { padding: 28px 20px; }
}
