*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f0f4f8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a202c;
}

.login-wrapper {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.login-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

/* ── Logo ── */
.logo-area {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.logo-icon { width: 40px; height: 40px; }
.logo-name  { font-size: 1.25rem; font-weight: 700; color: #1a56db; letter-spacing: -.3px; }

/* ── Headings ── */
.card-title    { font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem; }
.card-subtitle { font-size: .9rem; color: #718096; margin-bottom: 1.5rem; }

/* ── Alert ── */
.alert {
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .875rem;
  margin-bottom: 1.25rem;
}
.alert-error { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }

/* ── Fields ── */
.field-group { margin-bottom: 1.1rem; }
.field-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: .35rem;
}
.field-group input[type="text"],
.field-group input[type="password"] {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #f7fafc;
}
.field-group input:focus {
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
  background: #fff;
}

/* ── Password toggle ── */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 2.8rem; }
.toggle-pw {
  position: absolute; right: .65rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #a0aec0; line-height: 0;
}
.toggle-pw svg { width: 20px; height: 20px; }
.toggle-pw:hover { color: #4a5568; }

/* ── Remember / forgot ── */
.row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; font-size: .85rem;
}
.checkbox-label { display: flex; align-items: center; gap: .4rem; color: #4a5568; cursor: pointer; }
.checkbox-label input { accent-color: #1a56db; }
.link-muted { color: #1a56db; text-decoration: none; }
.link-muted:hover { text-decoration: underline; }

/* ── Button ── */
.btn-primary {
  width: 100%; padding: .7rem; border: none; border-radius: 8px;
  background: #1a56db; color: #fff; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background .2s, transform .1s;
}
.btn-primary:hover  { background: #1648c0; }
.btn-primary:active { transform: scale(.98); }

/* ── Help text ── */
.help-text { margin-top: 1.5rem; font-size: .8rem; color: #a0aec0; text-align: center; }
