/* =========================================
   NIA INVITE — AFFILIATE UI
   ========================================= */

:root {
  --green: #173f32;
  --green-dark: #102e25;
  --gold: #b58a5a;
  --cream: #f6f3ed;
  --cream-dark: #ebe5da;
  --text: #202020;
  --muted: #7d7a75;
  --white: #ffffff;
  --border: #e6e0d6;
  --danger: #a33b3b;
  --success: #28694a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background: var(--cream);
  color: var(--text);
}

/* =========================================
   COMMON
   ========================================= */

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* =========================================
   AUTH PAGE
   ========================================= */

.auth-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 32px 18px;
}

.auth-card {
  width: 100%;
  max-width: 430px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 20px;

  padding: 38px 34px 28px;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.08);
}

/* =========================================
   LOGO
   ========================================= */

.auth-logo {
  text-align: center;
  margin-bottom: 20px;
}

.auth-logo img {
  display: block;

  width: 155px;
  max-width: 70%;

  height: auto;

  margin: 0 auto;
}

/* =========================================
   AUTH HEADING
   ========================================= */

.auth-heading {
  text-align: center;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 2px;

  color: var(--gold);
}

.auth-heading h1 {
  margin: 0 0 8px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 30px;
  font-weight: 600;

  color: var(--green);
}

.auth-heading p:not(.eyebrow) {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.6;
}

/* =========================================
   FORM
   ========================================= */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  font-size: 13px;
  font-weight: 700;

  color: #444;
}

.form-group input {
  width: 100%;

  padding: 14px 15px;

  border: 1px solid #dcd6cc;
  border-radius: 10px;

  background: #fff;

  color: var(--text);

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: #aaa;
}

.form-group input:focus {
  border-color: var(--green);

  box-shadow:
    0 0 0 3px rgba(23, 63, 50, 0.08);
}

/* =========================================
   BUTTON
   ========================================= */

.primary-button {
  width: 100%;

  border: 0;
  border-radius: 10px;

  padding: 15px 18px;

  background: var(--green);
  color: #fff;

  font-size: 14px;
  font-weight: 700;

  letter-spacing: 0.4px;

  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.primary-button:hover {
  background: var(--green-dark);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* =========================================
   ERROR
   ========================================= */

.form-error {
  margin: 0 0 18px;

  padding: 12px 14px;

  border-radius: 9px;

  background: #fff1f1;
  border: 1px solid #f0cccc;

  color: var(--danger);

  font-size: 13px;
  line-height: 1.5;
}

/* =========================================
   AUTH FOOTER
   ========================================= */

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-top: 28px;

  color: #aaa;

  font-size: 12px;
}

/* =========================================
   DASHBOARD
   ========================================= */

.dashboard-page {
  min-height: 100vh;

  background: var(--cream);
}

/* =========================================
   DASHBOARD HEADER
   ========================================= */

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 20px 32px;

  background: var(--white);

  border-bottom: 1px solid var(--border);
}

.dashboard-brand {
  display: flex;
  align-items: center;

  gap: 14px;
}

.dashboard-brand img {
  width: 64px;
  height: 64px;

  object-fit: contain;
}

.dashboard-brand .eyebrow {
  margin-bottom: 3px;
}

.dashboard-brand h2 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 21px;
  font-weight: 600;

  color: var(--green);
}

.logout-button {
  border: 1px solid var(--border);
  border-radius: 9px;

  padding: 10px 16px;

  background: #fff;
  color: #555;

  font-size: 12px;
  font-weight: 700;
}

.logout-button:hover {
  background: var(--cream);
}

/* =========================================
   DASHBOARD CONTENT
   ========================================= */

.dashboard-content {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 35px 24px 50px;
}

/* =========================================
   WELCOME
   ========================================= */

.welcome-card {
  margin-bottom: 25px;

  padding: 28px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 16px;
}

.welcome-card h1 {
  margin: 0 0 8px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 30px;
  font-weight: 600;

  color: var(--green);
}

.welcome-card p:last-child {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
}

/* =========================================
   STATS
   ========================================= */

.dashboard-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 16px;
}

.stat-card {
  min-width: 0;

  padding: 22px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 14px;
}

.stat-label {
  display: block;

  margin-bottom: 9px;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 1px;
  text-transform: uppercase;

  color: #999;
}

.stat-card strong {
  display: block;

  color: var(--green);

  font-size: 21px;

  word-break: break-word;
}

.stat-email {
  font-size: 14px !important;
  line-height: 1.5;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 800px) {

  .dashboard-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 560px) {

  .auth-page {
    padding: 18px 12px;
  }

  .auth-card {
    padding: 30px 22px 24px;

    border-radius: 16px;
  }

  .auth-logo img {
    width: 140px;
  }

  .auth-heading h1 {
    font-size: 27px;
  }

  .dashboard-header {
    padding: 15px 16px;
  }

  .dashboard-brand img {
    width: 50px;
    height: 50px;
  }

  .dashboard-brand h2 {
    font-size: 18px;
  }

  .dashboard-content {
    padding: 24px 14px 40px;
  }

  .welcome-card {
    padding: 22px;
  }

  .welcome-card h1 {
    font-size: 26px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .logout-button {
    padding: 9px 11px;
  }

}
