:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  color: #f4f7fb;
  background:
    radial-gradient(circle at top, rgba(89, 143, 255, 0.28), transparent 35%),
    linear-gradient(160deg, #08111f 0%, #0f172a 45%, #111827 100%);
  line-height: 1.5;
  font-weight: 400;
  color-scheme: dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 12px;
}

.signup-shell {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.hero {
  padding: 0 8px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8fb7ff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.4vw, 4rem);
  line-height: 0.98;
  max-width: 10ch;
}

.hero-copy {
  margin: 12px 0 0;
  max-width: 42ch;
  color: rgba(244, 247, 251, 0.78);
  font-size: 0.88rem;
}

.card {
  width: min(100%, 460px);
  justify-self: end;
  display: grid;
  background: rgba(10, 17, 34, 0.72);
  border: 1px solid rgba(163, 188, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 18px 22px;
}

.success-shell {
  width: min(100%, 720px);
}

.success-card {
  text-align: center;
}

.header-card {
  text-align: left;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(179, 29, 43, 0.98), rgba(90, 12, 25, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.header-copy {
  flex: 1;
}

.header-top h1 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.header-id {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.header-id strong {
  margin-left: 6px;
  color: #fff;
  letter-spacing: 0.12em;
}

.header-demo-number {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.5rem;
}

.header-demo-number strong {
  margin-left: 6px;
  color: #fff;
  letter-spacing: 0.14em;
}

.header-badge {
  flex: none;
  border-radius: 999px;
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-photo-ring {
  width: 112px;
  height: 112px;
  flex: none;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.header-photo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.header-photo-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.progress-block {
  margin-top: 18px;
}

.action-block {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.progress-bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-fill {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd166, #ffffff);
}

.redeem-btn {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  background: #ffffff;
  color: #a51b2c;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.back-link {
  text-decoration: none;
  text-align: center;
}

.redeem-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.header-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.header-details > div {
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.header-details strong {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
  word-break: break-word;
}

.success-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.success-preview-wrap {
  margin: 22px 0 12px;
}

.success-preview {
  width: min(220px, 100%);
  height: 220px;
  border-radius: 28px;
}

.students-panel {
  margin: 22px 0;
  text-align: left;
}

.students-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-kicker {
  margin: 0 0 4px;
  color: #8fb7ff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}

.students-panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.students-count {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 251, 0.82);
  font-size: 0.86rem;
}

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

.student-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(163, 188, 255, 0.12);
}

.student-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a7a, #b31d2b);
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.student-info {
  display: grid;
  gap: 2px;
}

.student-info strong {
  color: #f7faff;
  font-size: 1rem;
}

.student-info span {
  color: rgba(244, 247, 251, 0.68);
  font-size: 0.92rem;
  word-break: break-word;
}

.student-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.signup-form {
  display: grid;
  gap: 10px;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.email-verification {
  display: grid;
  gap: 8px;
}

.email-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.email-field {
  min-width: 0;
}

.send-code-btn,
.verify-email-btn {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  background: #5b8cff;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}

.send-code-btn {
  justify-self: start;
  align-self: end;
  width: fit-content;
  padding: 0 13px;
  min-width: 0;
}

.send-code-btn:hover,
.verify-email-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.send-code-btn:disabled,
.verify-email-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.email-status,
.verification-status {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(244, 247, 251, 0.75);
}

.otp-section {
  display: grid;
  gap: 8px;
}

#verificationCode {
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 1rem;
  font-weight: 700;
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
/* =========================
   LOGO
========================= */

.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.logo {
  width: 116px;
  height: 70px;
  object-fit: contain;
  display: block;
  border-radius: 12px;

  background: #ffffff;
  padding: 7px 10px;

  border: 1px solid rgba(163, 188, 255, 0.2);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25),
    0 0 0 5px rgba(255, 255, 255, 0.04);
}
.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.coupon-field {
  min-width: 0;
}

.verify-btn {
  appearance: none;
  -webkit-appearance: none;
  justify-self: start;
  align-self: end;
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 0 13px;
  background: #ff5d5d;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.verify-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.verify-btn:focus,
.verify-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.coupon-status {
  margin: -4px 0 0;
  color: rgba(219, 230, 255, 0.82);
  font-size: 0.78rem;
}

.field {
  display: grid;
  gap: 5px;
  color: #dbe6ff;
  font-weight: 600;
  font-size: 0.86rem;
}

.field span {
  line-height: 1.2;
}

.field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(163, 188, 255, 0.22);
  border-radius: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #f4f7fb;
  font-size: 0.92rem;
  outline: none;
}

.field input::placeholder {
  color: rgba(244, 247, 251, 0.45);
}

.field input:focus {
  border-color: #7aa7ff;
  box-shadow: 0 0 0 4px rgba(122, 167, 255, 0.15);
}

.upload-box {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(163, 188, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.upload-box input[type='file'] {
  padding: 0;
  border: 0;
  background: transparent;
}

.upload-box p {
  margin: 0;
  color: rgba(244, 247, 251, 0.7);
  font-size: 0.8rem;
}

.preview-wrap {
  display: flex;
  justify-content: center;
}

.preview {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(163, 188, 255, 0.22);
}

.submit-btn {
  border: 0;
  border-radius: 16px;
  min-height: 42px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #7aa7ff, #4f7dff);
  color: white;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}

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

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

.login-link {
  margin: 0;
  text-align: center;
  color: rgba(244, 247, 251, 0.78);
  font-size: 0.82rem;
}

#passwordStatus,
#formStatus {
  margin: -2px 0 0;
  text-align: center;
  font-size: 0.78rem;
}

@media (max-width: 820px) {
  .field-pair {
    grid-template-columns: 1fr;
  }

  .signup-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 0;
  }

  .send-code-btn {
    width: 100%;
    justify-self: stretch;
    align-self: stretch;
    padding: 10px 14px;
  }

  .card {
    width: 100%;
    justify-self: stretch;
  }

  .header-details {
    grid-template-columns: 1fr;
  }

  .student-row {
    grid-template-columns: auto 1fr;
  }

  .student-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .coupon-row {
    grid-template-columns: 1fr;
  }

  .email-row {
    grid-template-columns: 1fr;
  }

  .verify-btn {
    width: 100%;
  }
}
