/*
 * FFC Referrals application styles.
 *
 * Keep page-specific rules scoped to their body class so future dashboard
 * screens can develop their own visual system without unexpected conflicts.
 */

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-body,
.auth-body * {
  box-sizing: border-box;
}

.auth-body {
  min-height: 100vh;
  margin: 0;
  color: #172033;
  background:
    radial-gradient(circle at 12% 15%, rgba(47, 111, 237, 0.20), transparent 36%),
    radial-gradient(circle at 88% 82%, rgba(20, 184, 166, 0.16), transparent 32%),
    linear-gradient(145deg, #eef4ff 0%, #f8fafc 48%, #edfdf8 100%);
}

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

.auth-card {
  width: min(100%, 460px);
  padding: 44px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
}

.auth-brand {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0d9488);
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.24);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.auth-eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(32px, 7vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.auth-intro {
  margin: 14px 0 30px;
  color: #5b6475;
  font-size: 16px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  color: #273449;
  font-size: 14px;
  font-weight: 700;
}

.auth-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #111827;
  background: #ffffff;
  font: inherit;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:hover {
  border-color: #94a3b8;
}

.auth-input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.auth-submit:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.auth-help {
  margin: 24px 0 0;
  text-align: center;
}

.auth-help a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.auth-help a:hover {
  text-decoration: underline;
}

.auth-message {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.auth-message-error {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.auth-message-notice {
  border: 1px solid #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 20px 14px;
  }

  .auth-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-input,
  .auth-submit {
    transition: none;
  }
}


.app-body,
.app-body * {
  box-sizing: border-box;
}

.app-body {
  min-height: 100vh;
  margin: 0;
  color: #172033;
  background: #f4f7fb;
}

.app-shell {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.app-brand {
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.app-nav-link,
.text-button {
  border: 0;
  color: #1d4ed8;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.page-eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-intro {
  max-width: 720px;
  margin: 14px 0 0;
  color: #5b6475;
  font-size: 17px;
  line-height: 1.6;
}

.panel {
  margin-top: 22px;
  padding: 30px;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.panel-heading {
  margin-bottom: 24px;
}

.panel-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
}

.panel-heading p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.55;
}

.import-form {
  display: grid;
  gap: 26px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field label {
  color: #273449;
  font-size: 15px;
  font-weight: 800;
}

.form-control,
.file-control {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #111827;
  background: #ffffff;
  font: inherit;
}

.form-control {
  padding: 11px 14px;
}

.file-control {
  padding: 10px;
}

.form-control:focus,
.file-control:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.field-help {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.safety-note {
  padding: 20px 22px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
}

.safety-note h3 {
  margin: 0 0 10px;
  color: #1e3a8a;
}

.safety-note ul,
.status-list,
.alert ul {
  margin: 0;
  padding-left: 22px;
  line-height: 1.75;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  color: #ffffff;
  background: #1d4ed8;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.22);
}

.secondary-button {
  border: 1px solid #cbd5e1;
  color: #1e3a8a;
  background: #ffffff;
}

.alert {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 12px;
  line-height: 1.55;
}

.alert h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.alert-error {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.alert-success {
  border: 1px solid #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #e2e8f0;
}

.summary-list div {
  padding: 18px;
  background: #ffffff;
}

.summary-list dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.summary-list dd {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.issue-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.issue-list li {
  padding: 14px 16px;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  line-height: 1.55;
}

.issue-list span {
  display: block;
  color: #64748b;
  font-size: 14px;
}

.signed-in {
  margin-top: 24px;
  color: #64748b;
}

@media (max-width: 720px) {
  .app-nav {
    margin-bottom: 36px;
  }

  .page-heading {
    align-items: start;
    flex-direction: column;
  }

  .panel {
    padding: 22px;
  }

  .summary-list {
    grid-template-columns: 1fr;
  }
}
