:root {
  color-scheme: light;
  --navy: #082b50;
  --page: #f4f6f9;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #ced4da;
  --border-soft: #dee2e6;
  --primary: #0d6efd;
  --primary-hover: #0b5ed7;
  --danger: #b42318;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  margin: 0;
  background: var(--page);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.site-header {
  min-height: 96px;
  background: var(--navy);
  color: #fff;
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  font-size: 23px;
  font-weight: 700;
}

.main-content {
  display: grid;
  place-items: center;
  padding: 64px 20px;
}

.login-card {
  width: min(100%, 440px);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.09);
}

.card-body {
  padding: 38px 34px 32px;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.025em;
}

.intro {
  margin: 12px 0 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.form-group + .form-group {
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.form-control {
  display: block;
  width: 100%;
  height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-control::placeholder {
  color: #98a2b3;
}

.form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18);
}

.password-control {
  position: relative;
}

.password-control .form-control {
  padding-right: 48px;
}

.show-password {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #667085;
  cursor: pointer;
}

.show-password:hover,
.show-password:focus-visible {
  background: #f2f4f7;
  color: #344054;
}

.show-password svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.form-error {
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.btn-primary {
  width: 100%;
  height: 48px;
  margin-top: 24px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn-primary:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.btn-primary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.forgot-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
}

.forgot-link:hover,
.forgot-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 13px;
}

.privacy-note svg {
  width: 20px;
  fill: none;
  stroke: #475467;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-footer {
  padding: 24px 20px 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

.site-footer p {
  margin: 12px 0 0;
}

.content-card {
  width: min(100%, 760px);
  padding: 34px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.07);
}

.content-card h1 {
  text-align: left;
}

.content-card h2 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.content-card p,
.content-card li {
  color: #475467;
  font-size: 15px;
  line-height: 1.65;
}

.content-card a {
  color: var(--primary);
}

.status-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #a6e9d5;
  border-radius: 6px;
  background: #ecfdf3;
  color: #027a48;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #12b76a;
}

@media (max-width: 560px) {
  .site-header {
    min-height: 82px;
  }

  .header-inner {
    width: min(100% - 32px, 1120px);
    padding: 17px 0;
  }

  .brand strong {
    font-size: 23px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .main-content {
    align-items: start;
    padding: 34px 16px;
  }

  .card-body,
  .content-card {
    padding: 28px 22px 24px;
  }

  h1 {
    font-size: 28px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
