@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color: #264F8A;
  background: #F4F9FF;
  font-family: "Montserrat", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #F4F9FF;
}

.preview-sign-in-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.preview-sign-in-card {
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid #D7E8FF;
  border-radius: 24px;
  background: #ffffff;
}

.preview-sign-in-brand {
  display: flex;
  min-height: 150px;
  align-items: center;
  padding: 32px 40px;
  background: #A9CCFA;
}

.preview-sign-in-brand img {
  display: block;
  width: min(260px, 76%);
  height: auto;
}

.preview-sign-in-content {
  padding: 40px;
}

.preview-sign-in-eyebrow {
  margin: 0 0 10px;
  color: #44659A;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #264F8A;
  font-size: clamp(2rem, 8vw, 2.7rem);
  line-height: 1.05;
}

.preview-sign-in-intro {
  margin: 16px 0 28px;
  color: #44659A;
  line-height: 1.6;
}

.preview-sign-in-error {
  margin: 0 0 22px;
  border-left: 4px solid #a84044;
  padding: 12px 14px;
  background: #F4F9FF;
  color: #264F8A;
  font-weight: 600;
  line-height: 1.45;
}

form {
  display: grid;
  gap: 10px;
}

label {
  margin-top: 8px;
  color: #264F8A;
  font-size: 0.92rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #264F8A;
  border-radius: 10px;
  padding: 10px 13px;
  color: #264F8A;
  background: #ffffff;
  font: inherit;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid #264F8A;
  outline-offset: 3px;
}

button {
  min-height: 50px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  background: #264F8A;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #264F8A;
}

@media (max-width: 560px) {
  .preview-sign-in-shell {
    padding: 16px;
  }

  .preview-sign-in-card {
    border-radius: 18px;
  }

  .preview-sign-in-brand {
    min-height: 124px;
    padding: 26px 28px;
  }

  .preview-sign-in-content {
    padding: 30px 28px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

[hidden] {
  display: none !important;
}
.team-code-box { margin: 12px 0; padding: 14px 16px; border: 2px solid #264F8A; border-radius: 12px; background: #fff; }
.team-code { margin: 6px 0; font-family: ui-monospace, Menlo, monospace; font-size: 28px; font-weight: 700; letter-spacing: 1px; }

/* Classic baby blue: links are deep blue, and the secondary buttons are outlined so the main button stands out */
.preview-sign-in-intro a, .preview-sign-in-content a { color: #264F8A; }
[data-account-show-access], [data-account-back], [data-account-access-back], [data-account-show-email], [data-account-email-back] { background: transparent; color: #264F8A; border: 1px solid #264F8A; }
[data-account-show-access]:hover, [data-account-back]:hover, [data-account-access-back]:hover, [data-account-show-email]:hover, [data-account-email-back]:hover { background: #D7E8FF; }
