/* ============================================================
   Minhas Tarefas — telas de autenticação
   Reaproveita os tokens do design principal (indigo, Plus Jakarta Sans).
   ============================================================ */
:root {
  --accent: #4f46e5;
  --accent-600: #4338ca;
  --accent-soft: #eef2ff;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --line: #eaeaf0;
  --line-strong: #dcdce6;
  --ink: #1c1d29;
  --ink-2: #565869;
  --ink-3: #8a8c9e;
  --ink-4: #b4b6c6;
  --danger: #e0242b;
  --danger-bg: #fdecec;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background:
    radial-gradient(1100px 520px at 50% -10%, #eef0ff 0%, rgba(238,240,255,0) 60%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-card {
  width: 100%;
  max-width: 412px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(20, 22, 41, 0.10), 0 2px 6px rgba(20, 22, 41, 0.05);
  padding: 30px 30px 26px;
}

.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(150deg, #6366f1, #4f46e5 55%, #4338ca);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.34); flex-shrink: 0;
}
.auth-brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; line-height: 1.1; }
.auth-brand-sub { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

.auth-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; }
.auth-sub { font-size: 13.5px; color: var(--ink-2); margin: 0 0 20px; font-weight: 500; }

.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.auth-field input {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: 11px;
  font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input::placeholder { color: var(--ink-4); }
.auth-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; }
.auth-remember { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.auth-remember input { width: 15px; height: 15px; accent-color: var(--accent); }

.auth-btn {
  width: 100%; height: 46px; border: none; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-family: inherit; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
  transition: background .15s, transform .12s; cursor: pointer;
}
.auth-btn:hover { background: var(--accent-600); transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }

.auth-foot { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 18px; font-weight: 500; }
.auth-foot a { color: var(--accent-600); font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.auth-errors {
  background: var(--danger-bg); border: 1px solid #f6cfcf; color: var(--danger);
  border-radius: 11px; padding: 10px 13px; margin-bottom: 16px;
  font-size: 12.8px; font-weight: 600;
}
.auth-errors ul { margin: 0; padding-left: 16px; }
.field-error { color: var(--danger); font-size: 11.5px; font-weight: 600; margin-top: 5px; }

.auth-demo {
  margin-top: 16px; padding: 11px 13px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-600);
  font-size: 12px; font-weight: 600; text-align: center;
}
.auth-demo b { font-weight: 800; }
