* { box-sizing: border-box; }

:root {
  --maroon: #73012c;
  --ink: #1b1b1b;
  --muted: #605e5c;
  --line: #d3d3d3;
  --blue: #0067b8;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #f2f2f2;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 15% 0%, #ffffff 0%, #e9e6e3 55%, #dcd6d2 100%);
}

.signin {
  position: relative;
  width: 440px;
  max-width: calc(100% - 32px);
  margin: 8vh auto 0;
  background: #fff;
  padding: 44px 44px 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 12px 40px rgba(0, 0, 0, .08);
}

.brand { margin-bottom: 26px; }
.brand img { width: 176px; display: block; }

h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.2px;
  margin: 0 0 6px;
}

.sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 26px;
}

.field { margin-bottom: 14px; }

input[type=text], input[type=password] {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #8a8886;
  border-bottom: 2px solid #8a8886;
  border-radius: 0;
  outline: none;
  background: #fff;
}

input:focus { border-color: var(--blue); border-bottom-width: 2px; }
input.bad { border-color: #a80000; }

.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.hint b { color: #3b3a39; }

.err {
  color: #a80000;
  font-size: 13px;
  margin-top: 7px;
  min-height: 0;
}

.who {
  font-size: 15px;
  margin: 2px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edebe9;
  word-break: break-all;
}

.keep {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #3b3a39;
  margin: 14px 0 0;
}

.keep input { width: 16px; height: 16px; accent-color: var(--blue); }

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

.forgot:hover { text-decoration: underline; }

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 30px;
}

button {
  font-family: inherit;
  font-size: 15px;
  min-width: 108px;
  height: 38px;
  padding: 0 18px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
}

.primary { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.primary:hover { background: #5e0123; }
.secondary { background: #fff; color: var(--ink); border-color: #8a8886; }
.secondary:hover { background: #f3f2f1; }

.spin {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px;
  font-size: 15px;
  color: var(--muted);
}

.ring {
  width: 22px;
  height: 22px;
  border: 3px solid #ded9d6;
  border-top-color: var(--maroon);
  border-radius: 50%;
  animation: turn .9s linear infinite;
}

@keyframes turn { to { transform: rotate(360deg); } }

.footer {
  position: relative;
  width: 440px;
  max-width: calc(100% - 32px);
  margin: 22px auto 40px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 12px;
  color: #6b6b6b;
}

.dots { letter-spacing: 2px; }

.hidden { display: none !important; }

@media (max-width: 520px) {
  .signin { margin-top: 4vh; padding: 32px 26px 30px; }
  .brand img { width: 150px; }
}
