:root {
  --primary: #001740;
  --primary-dark: #000d24;
  --primary-bg: #EEEBFF;
  --bg: #F4F5FA;
  --card: #FFFFFF;
  --border: #E7E8F1;
  --text: #1F2333;
  --text-soft: #6B7280;
  --text-faint: #9CA0AE;
  --red: #B91C1C;
  --red-bg: #FEE2E2;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-wrap {
  width: 100%;
  max-width: 420px;
}
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 8px 30px rgba(31, 35, 51, 0.06);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 28px;
}
.brand-mark {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  width: 100%;
  max-width: 220px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.brand-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: -4px;
}
.login-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.login-sub {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0 0 24px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.field input::placeholder {
  color: var(--text-faint);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  cursor: pointer;
}
.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.forgot {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.forgot:hover {
  text-decoration: underline;
}
.btn-login {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.btn-login:hover {
  background: var(--primary-dark);
}
.error {
  background: var(--red-bg);
  color: var(--red);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 9px;
  margin-bottom: 16px;
}
.footer-note {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-faint);
}

@media (max-width: 480px) {
  body { padding: 16px; }
  .login-card { padding: 28px 20px; }
}
