@import url("https://use.typekit.net/dfj4eiq.css");
@import url("https://fonts.googleapis.com/css2?family=Niramit:wght@400;500;600;700;800&display=swap");

:root {
  /* Fonts */
  --font-body: "sofia-pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Niramit", "sofia-pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --font-weight-regular: 400;
  --font-weight-bold: 700;

  /* Amplify Utah Brand Colors */
  --amplify-teal: #0092A0;
  --amplify-teal-dark: #007682;
  --amplify-teal-deep: #075D68;
  --amplify-teal-soft: #CDE8EB;

  --amplify-orange: #FF9B00;
  --amplify-orange-dark: #E88C00;
  --amplify-orange-soft: #FFF1D8;

  --amplify-purple: #B44B9B;
  --amplify-purple-dark: #963B80;
  --amplify-purple-soft: #F5E3F1;

  --amplify-blue: #46657C;
  --amplify-blue-dark: #334B5E;
  --amplify-blue-soft: #E5EDF2;

  --amplify-gray: #70838C;
  --amplify-text: rgb(88, 92, 95);
  --amplify-navy: #172433;
  --amplify-cream: #FFF8F3;
  --amplify-white: #FFFFFF;
  --amplify-black: #111111;

  /* Page Theme */
  --page-bg: var(--amplify-cream);
  --page-bg-secondary: #FFF3EA;

  --text-main: var(--amplify-navy);
  --text-body: var(--amplify-text);
  --text-muted: rgba(88, 92, 95, 0.72);
  --text-soft: rgba(88, 92, 95, 0.52);
  --text-inverse: #FFFFFF;

  /* Type Scale */
  --body-font-size: 18px;
  --body-line-height: 27px;
  --body-font-weight: 400;

  --button-font-size: 20px;
  --button-line-height: 30px;
  --button-font-weight: 700;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 44px;
  --text-5xl: 58px;

  --line-tight: 1.1;
  --line-sm: 1.25;
  --line-md: 1.5;
  --line-lg: 1.65;

  /* Surfaces */
  --surface-white: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --surface-glass-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(255, 248, 243, 0.82);
  --surface-teal: var(--amplify-teal-soft);
  --surface-blue: var(--amplify-blue-soft);
  --surface-orange: var(--amplify-orange-soft);
  --surface-purple: var(--amplify-purple-soft);

  /* Cards */
  --card-bg: var(--surface-glass);
  --card-bg-strong: var(--surface-glass-strong);
  --card-border: rgba(70, 101, 124, 0.18);

  /* Borders */
  --border-light: rgba(70, 101, 124, 0.14);
  --border-medium: rgba(70, 101, 124, 0.22);
  --border-strong: rgba(70, 101, 124, 0.34);
  --border-white: rgba(255, 255, 255, 0.42);

  /* Inputs */
  --input-bg: rgba(255, 255, 255, 0.78);
  --input-bg-hover: rgba(255, 255, 255, 0.92);
  --input-bg-focus: #FFFFFF;
  --input-border: rgba(70, 101, 124, 0.18);
  --input-border-hover: rgba(0, 146, 160, 0.42);
  --input-placeholder: rgba(88, 92, 95, 0.5);
  --focus-ring: rgba(0, 146, 160, 0.18);

  /* Buttons */
  --button-bg: var(--amplify-blue);
  --button-bg-hover: var(--amplify-teal);
  --button-text: #FFFFFF;
  --button-radius: 14px;

  /* Status Colors */
  --success: #1F9D66;
  --success-bg: rgba(31, 157, 102, 0.1);
  --success-border: rgba(31, 157, 102, 0.24);

  --warning: #FF9B00;
  --warning-bg: rgba(255, 155, 0, 0.12);
  --warning-border: rgba(255, 155, 0, 0.28);

  --error: #B7352F;
  --error-bg: rgba(255, 69, 58, 0.09);
  --error-border: rgba(255, 69, 58, 0.24);

  --info: #0092A0;
  --info-bg: rgba(0, 146, 160, 0.1);
  --info-border: rgba(0, 146, 160, 0.24);

  /* Shadows */
  --shadow-xs: 0 2px 6px rgba(23, 36, 51, 0.06);
  --shadow-sm: 0 8px 22px rgba(23, 36, 51, 0.08);
  --shadow-md: 0 16px 38px rgba(23, 36, 51, 0.12);
  --shadow-lg: 0 28px 70px rgba(23, 36, 51, 0.14);
  --shadow-xl: 0 34px 90px rgba(23, 36, 51, 0.18);

  --shadow-teal: 0 18px 34px rgba(0, 146, 160, 0.26);
  --shadow-orange: 0 18px 34px rgba(255, 155, 0, 0.3);
  --shadow-blue: 0 14px 28px rgba(70, 101, 124, 0.28);

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Motion */
  --transition-fast: 0.16s ease;
  --transition-normal: 0.22s ease;
  --transition-slow: 0.35s ease;
}

/* Night theme controlled by your JS */
html.theme-night {
  --page-bg: #111C28;
  --page-bg-secondary: #173345;

  --text-main: #FFFFFF;
  --text-body: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.58);
  --text-soft: rgba(255, 255, 255, 0.42);
  --text-inverse: #111111;

  --surface-glass: rgba(18, 30, 42, 0.82);
  --surface-glass-strong: rgba(22, 38, 52, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.08);

  --card-bg: var(--surface-glass);
  --card-bg-strong: var(--surface-glass-strong);
  --card-border: rgba(205, 232, 235, 0.16);

  --border-light: rgba(255, 255, 255, 0.12);
  --border-medium: rgba(205, 232, 235, 0.18);
  --border-strong: rgba(205, 232, 235, 0.3);

  --input-bg: rgba(255, 255, 255, 0.1);
  --input-bg-hover: rgba(255, 255, 255, 0.14);
  --input-bg-focus: rgba(255, 255, 255, 0.17);
  --input-border: rgba(255, 255, 255, 0.14);
  --input-border-hover: rgba(205, 232, 235, 0.38);
  --input-placeholder: rgba(255, 255, 255, 0.48);
  --focus-ring: rgba(0, 146, 160, 0.3);

  --shadow-xs: 0 2px 6px rgba(0, 0, 0, 0.16);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 16px 38px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.38);
  --shadow-xl: 0 38px 100px rgba(0, 0, 0, 0.48);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  font-weight: var(--body-font-weight);
  color: var(--text-body);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--amplify-blue);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--amplify-teal);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.035em;
}

p {
  margin: 0;
}

.text-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 27px;
  font-weight: 400;
  color: var(--text-body);
}

.text-muted {
  color: var(--text-muted);
}

.text-soft {
  color: var(--text-soft);
}

.text-button {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Buttons */
.btn,
.button,
.login-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--button-radius);
  font-family: var(--font-body);
  font-size: var(--button-font-size);
  line-height: var(--button-line-height);
  font-weight: var(--button-font-weight);
  color: var(--button-text);
  background: var(--button-bg);
  box-shadow: var(--shadow-blue);
  cursor: pointer;
  transition:
    transform var(--transition-normal),
    background var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-normal);
}

.btn:hover,
.button:hover,
.login-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  color: var(--button-text);
  background: var(--button-bg-hover);
  box-shadow: var(--shadow-teal);
}

.btn:active,
.button:active,
.login-button:active,
.primary-button:active {
  transform: translateY(0) scale(0.985);
}

.btn-orange {
  color: #111111;
  background: var(--amplify-orange);
  box-shadow: var(--shadow-orange);
}

.btn-orange:hover {
  color: #111111;
  background: var(--amplify-orange-dark);
  box-shadow: var(--shadow-orange);
}

.btn-teal {
  color: #FFFFFF;
  background: var(--amplify-teal);
  box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
  color: #FFFFFF;
  background: var(--amplify-teal-dark);
}

.btn-purple {
  color: #FFFFFF;
  background: var(--amplify-purple);
}

.btn-purple:hover {
  color: #FFFFFF;
  background: var(--amplify-purple-dark);
}

.btn-ghost {
  color: var(--amplify-blue);
  background: transparent;
  border: 1px solid var(--border-medium);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--amplify-teal);
  background: var(--surface-soft);
  box-shadow: none;
}

.btn-small {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
}

.btn-full {
  width: 100%;
}

/* Inputs */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  color: var(--text-main);
  background: var(--input-bg);
  box-shadow: var(--shadow-xs);
  outline: none;
  transition:
    border-color var(--transition-normal),
    background var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
select {
  height: 50px;
  padding: 0 15px;
}

textarea {
  min-height: 120px;
  padding: 14px 15px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
  font-weight: 400;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--input-border-hover);
  background: var(--input-bg-hover);
}

input:focus,
textarea:focus,
select:focus {
  background: var(--input-bg-focus);
  border-color: rgba(0, 146, 160, 0.55);
  box-shadow: 0 0 0 4px var(--focus-ring), var(--shadow-xs);
}

input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

/* Labels */
.input-label,
label {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--amplify-blue);
}

html.theme-night .input-label,
html.theme-night label {
  color: rgba(255, 255, 255, 0.76);
}

/* Cards */
.card,
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(170%) blur(24px);
  -webkit-backdrop-filter: saturate(170%) blur(24px);
}

.card-strong {
  background: var(--card-bg-strong);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.card-flat {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

/* Alerts */
.alert,
.error-message,
.success-message,
.warning-message,
.info-message {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
}

.error-message {
  border: 1px solid var(--error-border);
  background: var(--error-bg);
  color: var(--error);
}

.success-message {
  border: 1px solid var(--success-border);
  background: var(--success-bg);
  color: var(--success);
}

.warning-message {
  border: 1px solid var(--warning-border);
  background: var(--warning-bg);
  color: #9B5B00;
}

.info-message {
  border: 1px solid var(--info-border);
  background: var(--info-bg);
  color: var(--info);
}

/* Pills / Badges */
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.badge-teal {
  color: var(--amplify-teal-dark);
  background: var(--amplify-teal-soft);
}

.badge-orange {
  color: #8A5100;
  background: var(--amplify-orange-soft);
}

.badge-purple {
  color: var(--amplify-purple);
  background: var(--amplify-purple-soft);
}

.badge-blue {
  color: var(--amplify-blue);
  background: var(--amplify-blue-soft);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--amplify-blue);
}

td {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--text-body);
}

tr:last-child td {
  border-bottom: none;
}

/* Layout Helpers */
.page-shell {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.page-section {
  padding: var(--space-12) 0;
}

.stack {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.wrap {
  flex-wrap: wrap;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-5 {
  gap: var(--space-5);
}

.gap-6 {
  gap: var(--space-6);
}

.hidden {
  display: none !important;
}

.full-width {
  width: 100%;
}

.rounded {
  border-radius: var(--radius-lg);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.no-scroll {
  overflow: hidden;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Brand Background Utility */
.amplify-brand-bg {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 155, 0, 0.9) 0 8%, transparent 20%),
    radial-gradient(circle at 74% 58%, rgba(205, 232, 235, 1) 0 30%, transparent 58%),
    radial-gradient(circle at 15% 78%, rgba(0, 146, 160, 0.2) 0 20%, transparent 42%),
    radial-gradient(circle at 78% 86%, rgba(180, 75, 155, 0.22) 0 14%, transparent 34%),
    linear-gradient(135deg, #FFF8F3 0%, #FFF3EA 40%, #EAF7F8 72%, #CDE8EB 100%);
}

html.theme-night .amplify-brand-bg {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 155, 0, 0.72) 0 8%, transparent 22%),
    radial-gradient(circle at 72% 60%, rgba(0, 146, 160, 0.38) 0 30%, transparent 60%),
    radial-gradient(circle at 18% 76%, rgba(180, 75, 155, 0.3) 0 18%, transparent 42%),
    linear-gradient(135deg, #111C28 0%, #173345 46%, #075D68 100%);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFloat {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(12px, -14px, 0);
  }
}

@keyframes softPulse {
  from {
    opacity: 0.72;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.animate-fade-up {
  animation: fadeUp 0.45s ease both;
}

.animate-float {
  animation: softFloat 16s ease-in-out infinite alternate;
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --body-font-size: 16px;
    --body-line-height: 24px;
    --button-font-size: 18px;
    --button-line-height: 27px;
  }

  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .page-section {
    padding: var(--space-8) 0;
  }

  .btn,
  .button,
  .login-button,
  .primary-button {
    min-height: 52px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="date"],
  input[type="time"],
  select {
    height: 50px;
    font-size: 16px;
    line-height: 24px;
  }

  textarea {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Logo day/night swap (used by the navbar include) */
.logo-night {
  display: none;
}

html.theme-night .logo-day {
  display: none;
}

html.theme-night .logo-night {
  display: inline-block;
}

/* =========================================================
   signup-styles.css  —  styles.php?page=signup
   ========================================================= */

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

body {
  background: var(--page-bg);
  font-family: var(--font-body);
  color: var(--text-body);
  margin: 0;
  min-height: 100vh;
}

/* ---------- Two-column split ---------- */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
}

/* ---------- Brand panel ---------- */
.auth-brand-panel {
  background: linear-gradient(160deg, var(--amplify-teal-deep) 0%, var(--amplify-teal-dark) 60%, var(--amplify-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
  background-size: 28px 28px;
}

.auth-brand-inner {
  position: relative;
  max-width: 400px;
  width: 100%;
  margin-top: -40px;
}

.auth-logo-link {
  display: inline-block;
  margin-bottom: var(--space-8);
}

.auth-logo {
  height: 52px;
  width: auto;
  max-width: 260px;
}

.auth-brand-tagline {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: var(--line-tight);
}

.auth-brand-sub {
  margin: 0 0 var(--space-8);
  font-size: var(--text-md);
  color: rgba(255,255,255,0.75);
  line-height: var(--line-lg);
}

.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  color: #ffffff;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .auth-brand-panel { display: none; }
}

/* ---------- Form panel ---------- */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  min-height: 100vh;
  overflow-y: auto;
}

/* ---------- Card ---------- */
.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg-strong);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.auth-card-accent {
  height: 4px;
  background: linear-gradient(90deg,
    var(--amplify-teal)   0%,
    var(--amplify-blue)  35%,
    var(--amplify-purple) 68%,
    var(--amplify-orange) 100%
  );
}

.auth-card-header {
  padding: var(--space-7) var(--space-8) var(--space-4);
}

.auth-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.auth-subtitle {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.auth-switch-link {
  color: var(--amplify-teal-dark);
  font-weight: 700;
  text-decoration: none;
}
.auth-switch-link:hover { text-decoration: underline; }

/* ---------- Alert ---------- */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0 var(--space-8) var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--error);
}
.auth-alert i { margin-top: 2px; flex-shrink: 0; }

/* ---------- Form ---------- */
form {
  padding: 0 var(--space-8) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.opt {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-soft);
  font-size: var(--text-sm);
  pointer-events: none;
}

.input-icon-wrap input { padding-left: 40px !important; }

.pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.pw-toggle:hover { color: var(--amplify-teal); }

/* ---------- Password strength ---------- */
.pw-strength-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pw-strength-track {
  flex: 1;
  height: 5px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  transition: width 0.35s ease, background 0.35s ease;
}

.pw-strength-label {
  font-size: var(--text-xs);
  font-weight: 700;
  min-width: 48px;
  text-align: right;
  transition: color 0.35s ease;
}

.pw-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pw-rule {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color var(--transition-normal);
}

.pw-rule i {
  font-size: 12px;
  color: var(--error);
  transition: color var(--transition-normal);
}

.pw-rule.rule-pass { color: var(--success); }
.pw-rule.rule-pass i { color: var(--success); }

.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--error);
}

/* ---------- Submit button ---------- */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--amplify-teal), var(--amplify-teal-dark));
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-teal);
  transition: filter var(--transition-fast), transform var(--transition-fast);
  margin-top: var(--space-2);
}

.btn-submit:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-submit:disabled { opacity: 0.75; cursor: not-allowed; }

/* ---------- Terms ---------- */
.auth-terms {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  line-height: var(--line-lg);
}

.auth-terms a {
  color: var(--amplify-teal-dark);
  font-weight: 700;
  text-decoration: none;
}
.auth-terms a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .auth-form-panel { padding: var(--space-5) var(--space-4); align-items: flex-start; }
  .auth-card-header { padding: var(--space-6) var(--space-5) var(--space-4); }
  form { padding: 0 var(--space-5) var(--space-6); }
  .auth-alert { margin: 0 var(--space-5) var(--space-4); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .auth-title { font-size: var(--text-2xl); }
}