:root {
  --blue: #00539f;
  --blue-dark: #003f78;
  --link: #0a6fc2;
  --navy: #0d2a47;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --border: #c9c9c9;
  --notice-bg: #ffffff;
  --page-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 16px;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.card {
  width: 100%;
  max-width: 394px;
  border: 1px solid var(--border);
  background: #fff;
}

.card__header {
  padding: 26px 24px 18px;
  text-align: center;
}

.logo {
  display: inline-block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.card__body {
  padding: 0 26px 30px;
  border-top: 1px solid #e2e2e2;
  margin: 0 26px;
  padding-left: 0;
  padding-right: 0;
}

.title {
  margin: 26px 0 22px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}

/* Security notice */
.notice {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--blue);
  border-left: 6px solid var(--blue);
  padding: 18px 18px;
  margin-bottom: 26px;
  background: var(--notice-bg);
}

.notice__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.notice__text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.notice__link {
  margin-top: 14px !important;
}

/* Fields */
.field { margin-bottom: 16px; }

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #4a4a4a;
}

.input-wrap { position: relative; }

.input {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #a6a6a6;
  border-radius: 2px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}

.input:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
  border-color: var(--blue);
}

.input--password { padding-right: 42px; }

.toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--link);
}

.toggle__icon { width: 20px; height: 20px; }

.toggle.is-visible .slash { display: none; }

/* Checkbox */
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 20px;
  cursor: pointer;
  font-size: 15px;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox__box {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border: 2px solid #5a5a5a;
  border-radius: 2px;
  background: #fff;
  position: relative;
}

.checkbox input:checked + .checkbox__box {
  background: var(--blue);
  border-color: var(--blue);
}

.checkbox input:checked + .checkbox__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox input:focus-visible + .checkbox__box {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn--secondary {
  border: 1px solid var(--link);
  background: #fff;
  color: var(--link);
}

.btn--secondary:hover { background: #f2f8fd; }

/* Forgot row */
.forgot {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 24px 0 28px;
  font-size: 15px;
}

.forgot__label {
  margin-right: auto;
  color: var(--text);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--link);
  text-decoration: none;
}

.link:hover { text-decoration: underline; }

.link__icon { width: 17px; height: 17px; }

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 0 0 24px;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #e2e2e2;
}

.divider span {
  position: relative;
  padding: 0 12px;
  background: #fff;
  font-size: 15px;
  color: var(--text);
}

@media (max-width: 420px) {
  body { padding: 20px 12px; }
  .card__body { margin: 0 18px; }
}

/* Recovery / reset headings */
.heading {
  margin: 24px 0 14px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--navy);
}

.lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.link--inline { display: inline; gap: 0; }

/* Yellow submit button */
.btn--submit {
  border: 1px solid #f5a800;
  background: #f5a800;
  color: #1c1c1c;
  letter-spacing: .3px;
}

.btn--submit:hover { background: #e29c00; border-color: #e29c00; }

/* Spacing between stacked buttons */
.btn + .btn { margin-top: 12px; }

/* Two-factor code inputs */
.code {
  display: flex;
  gap: 8px;
}

.input--code {
  flex: 1 1 0;
  min-width: 0;
  height: 52px;
  padding: 8px 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.field__error {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: #c0392b;
}

/* Resend row */
.resend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 15px;
}

.resend__label { color: var(--text); }

.link--button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.link--button:disabled {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}

.resend__status {
  flex-basis: 100%;
  font-size: 13.5px;
  color: var(--blue);
}
