@charset "UTF-8";
/* HOC sign-in page. The race schedule's palette and sign-in card (race-schedule/css/app.css). */

:root {
  --navy: #0b1f5c;
  --navy-deep: #07143d;
  --blue: #1f5fbf;
  --blue-hover: #174c9c;
  --sea: #e8f0fb;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #5f6b80;
  --border: #d5dce8;
  --border-strong: #b7c2d6;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --focus: #3b82f6;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* `hidden` must win over the display of flex classes. */
[hidden] { display: none !important; }

html { font-size: 15px; }

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.45;
  color: var(--text);
}

h1 { color: var(--navy); line-height: 1.2; font-size: 1.3rem; margin: 0 0 1rem; }

a { color: var(--blue); }
a:hover { color: var(--blue-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---- Buttons and fields -------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.6rem;
  margin-top: .25rem;
  padding: .4rem 1rem;
  font: inherit; font-weight: 600;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--sea); color: var(--navy); }
.btn:disabled { opacity: .5; cursor: default; background: var(--surface); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-primary:disabled { background: var(--blue); }
.btn-block { width: 100%; }

/* In-flight request: spinner in front of the label. */
.btn.busy::before {
  content: "";
  width: 1em; height: 1em;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sign in with Google: white, the "G" in its colours, as Google's own buttons look. */
.btn-google { gap: .65rem; background: #fff; color: #3c4043; border-color: #dadce0; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c9ce; color: #202124; }
.google-g { width: 18px; height: 18px; flex: none; }

input[type="text"], input[type="password"] {
  width: 100%;
  min-height: 2.25rem;
  padding: .45rem .65rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}
input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }

.field { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1rem; }
.field label { font-weight: 600; color: var(--navy); }

.form-error {
  margin: 0 0 1rem;
  padding: .6rem .8rem;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 6px;
  white-space: pre-line;
}

/* ---- The card ------------------------------------------------------------ */

.signin-body {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(59, 130, 246, .35), transparent 45%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, #16408f);
}
.signin-card {
  width: min(24rem, 100%);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  padding: 2rem;
}
.signin-brand {
  display: flex; align-items: center; gap: .8rem;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.signin-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.6rem; height: 3.6rem;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
}
.signin-logo img { display: block; width: 3rem; height: auto; }
.signin-title { font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.signin-sub { color: var(--muted); font-size: .9rem; }
.signin-wait { color: var(--muted); margin: 0; }
.signin-hint { color: var(--muted); font-size: .85rem; text-align: center; margin: .5rem 0 0; }
.signin-hint-left { text-align: left; margin: 0 0 1rem; }
.signin-divider {
  display: flex; align-items: center; gap: .75rem;
  color: var(--muted); font-size: .85rem; margin: 1.25rem 0;
}
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.signin-who { margin: -.5rem 0 1rem; color: var(--muted); }
.signin-who strong { color: var(--text); }
.signin-apps { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .5rem; }
.signin-apps a {
  display: block;
  padding: .7rem .9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: var(--sea);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.signin-apps a:hover { border-color: var(--blue); color: var(--blue); }
.signin-foot { color: #b9cdf0; font-size: .85rem; margin-top: 1.25rem; }
