/* GSC Ops Hub sign in.
   Tokens lifted straight from getsolarclients.com so this reads as the same
   company: light shell, navy type, Poppins, the site's .btn-primary.
   Self-contained, no external requests: fonts and logo are vendored. */

@font-face {
  font-family: 'Poppins';
  src: url('/auth/fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/auth/fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg-primary:   #f7f9fb;
  --bg-secondary: #eef1f5;
  --color-navy:   #1d2d44;
  --color-blue:   #5da9e9;
  --color-blue-dark: #4a96d6;
  --text-primary: #1d2d44;
  --text-muted:   #6c7a89;
  --text-light:   #9aabb8;
  --border-subtle: rgba(29, 45, 68, 0.12);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 8px;
  --shadow-lg: 0 12px 40px rgba(29,45,68,0.13), 0 4px 12px rgba(29,45,68,0.08);
}

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  background-image:
    radial-gradient(900px 420px at 50% -180px, rgba(93,169,233,0.16), transparent 70%);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 34px 32px 28px;
}

/* ---- brand lockup: the site's nav-logo, stacked ------------------------- */
.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 26px;
}
.lockup img {
  height: 44px;
  width: auto;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lockup:hover img { transform: scale(1.08); }
.lockup-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.lockup-text span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.lede {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

/* ---- form --------------------------------------------------------------- */
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="text"], input[type="password"] {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(93,169,233,0.18);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(93,169,233,0.35);
}
.btn-primary:hover {
  background: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(93,169,233,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; }

.alert {
  background: rgba(214, 69, 69, 0.08);
  border: 1px solid rgba(214, 69, 69, 0.28);
  color: #a83232;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 18px;
}

.fine {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-light);
}

@media (max-width: 420px) {
  .card { padding: 26px 22px 22px; border-radius: 12px; }
  h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
