/* The FedPoint sign-in page: Fluent look (Segoe UI, brand blue #0f6cbd, 4 px corners) on the scan background. */
:root {
  --brand: #0f6cbd;
  --brand-hover: #115ea3;
  --brand-pressed: #0c3b5e;
  --text: #242424;
  --text-soft: #616161;
  --stroke: #d1d1d1;
  --stroke-strong: #616161;
  --danger: #b10e1c;
  --danger-bg: #fdf3f4;
  --panel: rgba(255, 255, 255, 0.95);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #06122b url("/login/background.svg") center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
}

.scene {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(24px, 6vh, 72px) clamp(16px, 7vw, 120px);
}

.panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 36px 36px 26px;
  box-shadow: 0 28px 64px rgba(2, 8, 22, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: rise 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.brand img { border-radius: 11px; box-shadow: 0 6px 16px rgba(11, 79, 138, 0.35); }
.brand h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.brand p { margin: 2px 0 0; color: var(--text-soft); font-size: 13px; }

form h2 { margin: 0; font-size: 20px; font-weight: 600; }
form .hint { margin: 4px 0 22px; color: var(--text-soft); font-size: 14px; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }

input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--stroke);
  border-bottom-color: var(--stroke-strong);
  border-radius: 4px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
input:hover { border-color: #c7c7c7; border-bottom-color: #575757; }
input:focus { border-bottom-color: var(--brand); box-shadow: inset 0 -1px 0 var(--brand); }

.secret { position: relative; }
.secret input { padding-right: 68px; }
.reveal {
  position: absolute; top: 4px; right: 4px; height: 30px; padding: 0 10px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--brand);
  background: transparent; border: 0; border-radius: 4px; cursor: pointer;
}
.reveal:hover { background: #ebf3fc; }
.reveal:focus-visible, .primary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.message {
  margin: 4px 0 16px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #f1bbbc;
  border-left: 4px solid var(--danger);
  border-radius: 4px;
}

.primary {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 42px; margin-top: 6px;
  font: inherit; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--brand); border: 0; border-radius: 4px; cursor: pointer;
  transition: background 120ms;
}
.primary:hover { background: var(--brand-hover); }
.primary:active { background: var(--brand-pressed); }
.primary:disabled { cursor: progress; background: var(--brand-hover); }

.spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%;
  animation: spin 700ms linear infinite;
}
form.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 26px; padding-top: 16px;
  font-size: 12px; color: var(--text-soft);
  border-top: 1px solid #e6e6e6;
}
.lock {
  width: 10px; height: 8px; margin-top: 4px; position: relative;
  background: var(--text-soft); border-radius: 2px;
}
.lock::before {
  content: ""; position: absolute; left: 1.5px; top: -5px; width: 7px; height: 7px;
  border: 1.5px solid var(--text-soft); border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box;
}

/* above the horizon of the background: nothing of the road runs through the text */
.story {
  color: #e9f3ff; max-width: 520px; justify-self: end; align-self: start;
  margin-top: clamp(16px, 9vh, 110px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.eyebrow {
  margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #7fefff;
}
.headline { margin: 0 0 26px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; font-weight: 600; }
.facts { margin: 0; padding: 0; list-style: none; font-size: 15px; color: #c9ddf5; }
.facts li { padding: 7px 0; border-top: 1px solid rgba(201, 221, 245, 0.18); }
.facts span { color: #fff; font-weight: 600; }

.copyright {
  position: fixed; left: 0; right: 0; bottom: 14px; margin: 0;
  text-align: center; font-size: 12px; color: rgba(233, 243, 255, 0.55);
}

@media (max-width: 900px) {
  .scene { grid-template-columns: 1fr; padding: 32px 16px 56px; }
  .story { display: none; }
  .panel { padding: 28px 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  .spinner { animation-duration: 2s; }
}
