:root {
  --page: #eef2f4;
  --text: #334155;
  --muted: #64748b;
  --heading: #1e293b;
  --line: #d9e2e8;
  --blue: #245a73;
  --blue-dark: #19465b;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-box { width: 100%; max-width: 430px; }

.login-card {
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.card-heading { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; }
.card-heading h2 { margin: 0; color: var(--heading); font-size: 16px; font-weight: 600; }
.card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.field { margin-bottom: 20px; }
.field label, .label-line label { color: var(--text); font-size: 14px; font-weight: 600; }
.field > label { display: block; margin-bottom: 7px; }
.label-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }

input[type="text"], input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input[type="text"]:focus, input[type="password"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 90, 115, .12);
}

.link-button, .show-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
}

.link-button:hover, .show-button:hover { text-decoration: underline; }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.show-button { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); color: var(--muted); }

.remember { display: flex; align-items: center; gap: 8px; margin: 1px 0 20px; color: var(--muted); cursor: pointer; font-size: 13px; }
.remember input { width: 15px; height: 15px; accent-color: var(--blue); }

.submit-button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}

.submit-button:hover { background: var(--blue-dark); }
.success-message { margin: 14px 0 0; padding: 9px 12px; border-radius: 5px; background: #ecfdf5; color: #047857; text-align: center; font-size: 12px; font-weight: 600; }
.success-message[hidden] { display: none; }
footer { margin-top: 20px; color: #94a3b8; text-align: center; font-size: 12px; }

@media (max-width: 480px) {
  .login-page { padding: 24px 12px; }
  .login-card { padding: 24px 20px; }
}
