/* Clover Reporting — login gate styles. Self-contained; uses brand tokens
   (green #00d59f, navy #041e3f) and the app fonts (Inter / Sora). */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0, 213, 159, 0.10), transparent 60%),
    #f6f8fa;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(4, 30, 63, 0.08);
  padding: 36px 36px 24px;
}

.login-card__brand {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.login-card__logo {
  display: block;
  height: 34px;
  width: auto;
}

.login-card__title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #0b1220;
  margin: 0 0 8px;
}
.login-card__lede {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #5b6573;
  margin: 0 0 22px;
}

.login-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7480;
  margin-bottom: 8px;
}
.login-input {
  width: 100%;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #0b1220;
  padding: 12px 14px;
  border: 1px solid #d6dbe2;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input:focus {
  border-color: #00d59f;
  box-shadow: 0 0 0 3px rgba(0, 213, 159, 0.18);
}

.login-btn {
  width: 100%;
  margin-top: 18px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #032a20;
  background: #00d59f;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  transition: filter 0.15s, opacity 0.15s;
}
.login-btn:hover { filter: brightness(0.96); }
.login-btn:disabled { opacity: 0.6; cursor: default; }
.login-btn--ghost {
  background: transparent;
  color: #5b6573;
  border: 1px solid #d6dbe2;
  margin-top: 14px;
}

.login-error {
  margin-top: 12px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #c0392b;
  background: #fdecea;
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  padding: 9px 11px;
}

.login-card__sent .login-card__title { color: #00a87d; }

/* Secondary text links (forgot password, magic-link fallback, cancel) */
.login-link {
  display: inline-block;
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #00a87d;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.login-link:hover { text-decoration: underline; }
.login-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.login-card__foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #eef1f5;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #8a93a0;
}

/* Full-page loading overlay (boot + refetch) */
.cdd-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(246, 248, 250, 0.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.cdd-loading__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(4, 30, 63, 0.15);
  border-top-color: #00d59f;
  animation: cdd-spin 0.8s linear infinite;
}
.cdd-loading__label {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5b6573;
}
@keyframes cdd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cdd-loading__spinner { animation-duration: 1.6s; }
}

/* Sign-out button in the header */
.signout-btn {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #5b6573;
  background: transparent;
  border: 1px solid #d6dbe2;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.signout-btn:hover { background: #f1f4f8; color: #0b1220; }
