/* =========================
   AgendaJá — Login (Mobile First)
   ========================= */

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

:root {
  --bg: #F6F7FB;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;

  --border: #E5E7EB;
  --input-bg: #FFFFFF;

  --primary: #10B981;
  --primary-2: #059669;
  --primary-soft: #ECFDF5;

  --danger-soft: #FEF2F2;
  --danger: #EF4444;

  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 500px at 50% -10%, rgba(16,185,129,0.18), transparent 60%),
              var(--bg);
  color: var(--text);
}

/* ---------- Wrapper ---------- */
.login-wrapper {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px 12px;
}

/* ---------- Card ---------- */
.login-container {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px;
}

/* ---------- Títulos ---------- */
.login-titulo {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 22px;
  margin: 0 0 6px;
}

.login-subtitulo {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Erro ---------- */
.login-erro {
  background: var(--danger-soft);
  color: #991B1B;
  border: 1px solid rgba(239,68,68,0.25);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 14px;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.login-logo img {
  max-width: 140px;
  height: auto;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.login-brand-logo {
  max-width: 140px;
  height: auto;
}

.login-brand-name {
  margin-top: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #0f172a; /* ajusta conforme tua paleta */
  letter-spacing: 0.3px;
}

/* ---------- Form ---------- */
.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Inputs ---------- */
.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.login-form input::placeholder {
  color: #94A3B8;
}

.login-form input:focus {
  border-color: rgba(16,185,129,0.65);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.14);
}

/* ---------- Opções ---------- */
.login-opcoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 10px;
}

.lembrar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.lembrar input {
  accent-color: var(--primary);
}

.esqueci-senha {
  font-size: 13px;
  font-weight: 600;
  color: #0EA5E9;
  text-decoration: none;
}

.esqueci-senha:hover {
  text-decoration: underline;
}

/* ---------- Botão ---------- */
.btn-primary {
  margin-top: 10px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;

  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 18px rgba(16,185,129,0.22);
  transition: transform .08s ease, filter .12s ease, box-shadow .12s ease;
}

.btn-primary:active {
  transform: translateY(1px);
  filter: brightness(0.98);
  box-shadow: 0 6px 12px rgba(16,185,129,0.18);
}

/* ---------- Footer ---------- */
.login-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.login-footer a {
  margin-left: 4px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ---------- Desktop ---------- */
@media (min-width: 520px) {
  .login-container {
    padding: 26px 22px 20px;
  }

  .login-titulo {
    font-size: 24px;
  }
}
