@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;
}

@import url('https://fonts.googleapis.com/css2?family=Niramit:wght@500;600;700;800&display=swap');

:root {
  --amplify-teal: #0092A0;
  --amplify-teal-dark: #007682;
  --amplify-teal-soft: #CDE8EB;
  --amplify-orange: #FF9B00;
  --amplify-orange-dark: #E88C00;
  --amplify-purple: #B44B9B;
  --amplify-blue: #46657C;
  --amplify-text: rgb(88, 92, 95);
  --amplify-navy: #172433;
  --amplify-cream: #FFF8F3;

  --font-display: 'Niramit', sans-serif;
  --font-body: 'sofia-pro', 'Niramit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --page-bg: var(--amplify-cream);
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-border: rgba(70, 101, 124, 0.18);

  --text-main: var(--amplify-navy);
  --text-body: var(--amplify-text);
  --text-muted: rgba(88, 92, 95, 0.7);
  --placeholder: rgba(88, 92, 95, 0.5);

  --input-bg: rgba(255, 255, 255, 0.78);
  --input-bg-focus: #ffffff;
  --input-border: rgba(70, 101, 124, 0.18);
  --focus-ring: rgba(0, 146, 160, 0.18);

  --shadow-card: 0 28px 70px rgba(23, 36, 51, 0.14);
  --shadow-soft: 0 8px 22px rgba(23, 36, 51, 0.08);

  --radius-card: 28px;
  --radius-field: 14px;
  --radius-pill: 999px;
}

html.theme-night {
  --page-bg: #111C28;
  --card-bg: rgba(18, 30, 42, 0.82);
  --card-border: rgba(205, 232, 235, 0.16);

  --text-main: #ffffff;
  --text-body: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.58);
  --placeholder: rgba(255, 255, 255, 0.48);

  --input-bg: rgba(255, 255, 255, 0.1);
  --input-bg-focus: rgba(255, 255, 255, 0.16);
  --input-border: rgba(255, 255, 255, 0.14);
  --focus-ring: rgba(0, 146, 160, 0.3);

  --shadow-card: 0 32px 90px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.18);
}

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

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

body.student-login-page {
  min-height: 100vh;
  padding: clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--page-bg);
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.amplify-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  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-background {
  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%);
}

.amplify-background::before {
  content: '';
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 20% 20%, rgba(205, 232, 235, 0.7) 0 18%, transparent 36%),
    radial-gradient(circle at 86% 30%, rgba(255, 155, 0, 0.28) 0 14%, transparent 34%),
    radial-gradient(circle at 36% 86%, rgba(0, 146, 160, 0.22) 0 16%, transparent 34%);
  filter: blur(24px);
  animation: amplifyGlowMove 22s ease-in-out infinite alternate;
}

html.theme-night .amplify-background::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(205, 232, 235, 0.12) 0 18%, transparent 36%),
    radial-gradient(circle at 86% 30%, rgba(255, 155, 0, 0.24) 0 14%, transparent 34%),
    radial-gradient(circle at 36% 86%, rgba(0, 146, 160, 0.28) 0 16%, transparent 34%);
}

.amplify-wave {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -22%;
  height: 34vh;
  background: var(--amplify-teal-soft);
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  transform: rotate(-2deg);
  animation: amplifyWaveMove 18s ease-in-out infinite alternate;
}

html.theme-night .amplify-wave {
  background: rgba(205, 232, 235, 0.1);
}

.amplify-shape {
  position: absolute;
  display: block;
  border-radius: var(--radius-pill);
  animation: amplifyShapeFloat 15s ease-in-out infinite alternate;
}

.amplify-shape-orange {
  width: clamp(90px, 10vw, 138px);
  height: clamp(90px, 10vw, 138px);
  top: 12%;
  right: 7%;
  background: var(--amplify-orange);
}

.amplify-shape-teal {
  width: 18px;
  height: 18px;
  top: 26%;
  left: 18%;
  background: var(--amplify-teal-soft);
  animation-delay: -6s;
}

@keyframes amplifyGlowMove {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(1.5%, 1.5%, 0) scale(1.035);
  }
}

@keyframes amplifyWaveMove {
  from {
    transform: translateY(0) rotate(-2deg);
  }

  to {
    transform: translateY(-16px) rotate(1deg);
  }
}

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

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

.login-container {
  width: min(100%, 390px);
  position: relative;
  z-index: 2;
  padding: clamp(26px, 5vw, 36px);
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: saturate(170%) blur(24px);
  -webkit-backdrop-filter: saturate(170%) blur(24px);
  overflow: hidden;
  animation: loginSlideIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 146, 160, 0.16), transparent 40%),
    radial-gradient(circle at bottom right, rgba(255, 155, 0, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

html.theme-night .login-container::before {
  background:
    radial-gradient(circle at top left, rgba(0, 146, 160, 0.24), transparent 40%),
    radial-gradient(circle at bottom right, rgba(255, 155, 0, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.login-container:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 146, 160, 0.34);
  box-shadow: 0 34px 86px rgba(23, 36, 51, 0.18);
}

html.theme-night .login-container:hover {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

@keyframes loginSlideIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

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

.login-brand,
.login-copy,
.login-form,
.error-message,
.links-container,
.footer {
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.logo {
  width: clamp(82px, 20vw, 108px);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(23, 36, 51, 0.1));
}

.login-copy {
  margin-bottom: 20px;
}

.login-kicker {
  margin-bottom: 3px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  color: var(--amplify-blue);
}

html.theme-night .login-kicker {
  color: var(--amplify-teal-soft);
}

.login-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 10vw, 58px);
  line-height: 0.9;
  font-weight: 800;
  color: var(--amplify-teal);
  letter-spacing: -0.055em;
}

html.theme-night .login-copy h1 {
  color: #ffffff;
}

.login-form {
  text-align: left;
}

.input-label {
  display: block;
  margin: 12px 0 6px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--amplify-blue);
}

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

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-field);
  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-soft);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: var(--placeholder);
  font-weight: 400;
}

input[type="text"]:hover,
input[type="password"]:hover {
  border-color: rgba(0, 146, 160, 0.4);
}

input[type="text"]:focus,
input[type="password"]: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-soft);
  transform: translateY(-1px);
}

.login-row {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 25px;
  margin: 0;
  border-radius: var(--radius-pill);
  background: rgba(70, 101, 124, 0.18);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.checkbox-container input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(23, 36, 51, 0.18);
  transition: all 0.25s ease;
}

.checkbox-container input[type="checkbox"]:checked {
  background: var(--amplify-teal);
}

.checkbox-container input[type="checkbox"]:checked::before {
  left: 20px;
}

.forgot-link {
  color: var(--amplify-blue);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.forgot-link:hover {
  color: var(--amplify-teal);
}

.login-button {
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-field);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  color: #ffffff;
  background: var(--amplify-blue);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(70, 101, 124, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  background: var(--amplify-teal);
  box-shadow: 0 18px 34px rgba(0, 146, 160, 0.26);
}

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

.links-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--text-muted);
}

.links-container a {
  color: var(--amplify-blue);
  text-decoration: none;
  font-weight: 700;
}

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

.error-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 69, 58, 0.22);
  border-radius: var(--radius-field);
  background: rgba(255, 69, 58, 0.09);
  color: #B7352F;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  text-align: left;
}

.error-message p {
  margin: 0;
}

.footer {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  font-weight: 400;
}

.footer a {
  color: var(--amplify-blue);
  text-decoration: none;
  font-weight: 700;
}

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

@media (max-width: 480px) {
  body.student-login-page {
    align-items: center;
    padding: 14px;
  }

  .login-container {
    width: 100%;
    padding: 26px 22px;
    border-radius: 24px;
  }

  .login-brand {
    margin-bottom: 10px;
  }

  .login-copy {
    margin-bottom: 18px;
  }

  .login-copy h1 {
    font-size: 46px;
  }

  .login-row {
    align-items: flex-start;
  }

  .checkbox-container {
    font-size: 14px;
  }

  .forgot-link {
    font-size: 14px;
  }

  .amplify-shape-orange {
    right: -36px;
    top: 7%;
  }
}

@media (max-height: 720px) {
  .login-container {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .logo {
    width: 84px;
  }

  .login-copy h1 {
    font-size: 42px;
  }

  .footer {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amplify-background::before,
  .amplify-wave,
  .amplify-shape,
  .login-container {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}