/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050816;
  color: #f9fafb;
  position: relative;
  overflow: hidden;
}

/* Fundo com gradiente suave */
.bg-gradient {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at top left, #22c55e33, transparent 60%),
    radial-gradient(circle at bottom right, #0ea5e933, transparent 60%),
    radial-gradient(circle at top right, #f9731633, transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

/* Container central */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

/* Card principal */
.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 16px;
  padding: 28px 24px 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(14px);
}

/* Logo / Marca */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f172a;
  font-size: 20px;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-text span {
  font-size: 12px;
  color: #9ca3af;
}

/* Títulos */
.card-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 18px;
}

/* Formulário */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.input-group label {
  font-size: 13px;
  color: #e5e7eb;
}

.input-group input {
  background: #020617;
  border-radius: 10px;
  border: 1px solid #1f2937;
  padding: 10px 11px;
  font-size: 14px;
  color: #f9fafb;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-group input::placeholder {
  color: #6b7280;
}

.input-group input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

/* Senha com botão olho */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
}

.toggle-senha {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.65;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.toggle-senha:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Botão de login */
.btn-login {
  width: 100%;
  border: none;
  border-radius: 999px;
  margin-top: 6px;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.07s ease, box-shadow 0.1s ease,
    filter 0.1s ease;
  box-shadow: 0 14px 25px rgba(22, 163, 74, 0.35);
}

.btn-login:hover {
  filter: brightness(1.04);
  box-shadow: 0 18px 30px rgba(22, 163, 74, 0.4);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);
}

/* Mensagem de erro */
.msg-erro {
  margin-top: 10px;
  font-size: 13px;
  color: #f97373;
  background: rgba(127, 29, 29, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.4);
  padding: 8px 10px;
  border-radius: 10px;
}

.hidden {
  display: none;
}

/* Rodapé */
.footer-info {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}

/* Responsivo */
@media (max-width: 480px) {
  .card {
    padding: 22px 18px 18px;
  }

  .logo-text h1 {
    font-size: 18px;
  }

  .card-title {
    font-size: 17px;
  }
}
