.neo-auth,
.neo-account,
.neo-lecture-catalog {
  width: 100%;
}

.neo-notice {
  margin-bottom: 24px;
  padding: 13px 16px;
  border: 1px solid #d6e2e8;
  border-left: 4px solid #145a7a;
  border-radius: 6px;
  color: #18232d;
  background: #f4f8fa;
}

.neo-notice--error {
  border-color: #ebc4bd;
  border-left-color: #c7483b;
  background: #fff1ee;
}

.neo-notice--info {
  border-color: #d6e2e8;
  border-left-color: #5b6973;
  background: #f4f8fa;
}

.neo-auth__intro {
  max-width: 720px;
  margin-bottom: 30px;
}

.neo-auth__intro h2,
.neo-account__header h2,
.neo-section-heading h2,
.neo-account-section h2 {
  margin: 5px 0 8px;
  color: var(--color-ink, #18232d);
  font-family: var(--font-display, Georgia, serif);
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: 0;
}

.neo-auth__intro p,
.neo-account__header p {
  margin: 0;
  color: var(--color-muted, #5b6973);
}

.neo-auth__forms {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--color-line, #d6e2e8);
  border-radius: 8px;
  background: #fff;
}

.neo-auth-panel {
  min-width: 0;
  padding: 30px;
}

.neo-auth-panel + .neo-auth-panel {
  border-left: 1px solid var(--color-line, #d6e2e8);
  background: #f7faf9;
}

.neo-auth-panel h3 {
  margin: 0 0 22px;
  color: var(--color-ink, #18232d);
  font-size: 21px;
  letter-spacing: 0;
}

.neo-auth-panel form,
.neo-profile form {
  display: grid;
  gap: 16px;
}

.neo-auth-panel label:not(.neo-checkbox):not(.neo-honeypot),
.neo-form-grid label {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.neo-auth-panel label > span,
.neo-form-grid label > span {
  color: var(--color-ink, #18232d);
  font-size: 14px;
  font-weight: 650;
}

.neo-auth input[type="text"],
.neo-auth input[type="email"],
.neo-auth input[type="password"],
.neo-profile input[type="text"],
.neo-profile input[type="email"],
.neo-profile input[type="tel"] {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #9aadb8;
  border-radius: 6px;
  color: var(--color-ink, #18232d);
  background: #fff;
}

.neo-auth input:focus,
.neo-profile input:focus {
  border-color: var(--color-primary, #145a7a);
  outline: 3px solid rgba(20, 90, 122, 0.14);
  outline-offset: 0;
}

.neo-profile input:disabled {
  color: #617074;
  background: #f1f4f3;
}

.neo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.neo-form-wide {
  grid-column: 1 / -1;
}

.neo-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--color-muted, #5b6973);
  font-size: 13px;
  line-height: 1.5;
}

.neo-checkbox input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--color-primary, #145a7a);
}

.neo-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.neo-auth__reset {
  width: fit-content;
  font-size: 14px;
}

.neo-account__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-line, #d6e2e8);
}

.neo-account-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 36px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line, #d6e2e8);
  background: rgba(255, 255, 255, 0.96);
}

.admin-bar .neo-account-nav {
  top: 32px;
}

.neo-account-nav a {
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--color-ink, #18232d);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.neo-account-nav a:hover,
.neo-account-nav a:focus {
  color: var(--color-primary-dark, #103b53);
  background: var(--color-primary-soft, #dfeeea);
}

.neo-account-section {
  scroll-margin-top: 90px;
  padding: 34px 0 44px;
  border-bottom: 1px solid var(--color-line, #d6e2e8);
}

.neo-account-section:last-child {
  border-bottom: 0;
}

.neo-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.neo-section-heading h2 {
  font-size: 30px;
}

.neo-empty-state {
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid #f2c94c;
  color: var(--color-muted, #5b6973);
  background: #fff8e6;
}

.neo-my-lectures {
  border-top: 1px solid var(--color-line, #d6e2e8);
}

.neo-my-lecture {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line, #d6e2e8);
}

.neo-my-lecture__date {
  display: grid;
  align-content: start;
  gap: 3px;
  color: var(--color-muted, #5b6973);
  font-size: 14px;
}

.neo-my-lecture__date strong {
  color: var(--color-ink, #18232d);
  font-size: 17px;
}

.neo-my-lecture h3 {
  margin: 8px 0 12px;
  color: var(--color-ink, #18232d);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.neo-my-lecture h3 a {
  color: inherit;
  text-decoration: none;
}

.neo-my-lecture__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.neo-my-lecture__actions form {
  margin: 0;
}

.neo-lecture-catalog {
  margin-top: 44px;
  padding-top: 38px;
  border-top: 1px solid var(--color-line, #d6e2e8);
}

.neo-lecture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.neo-lecture-card {
  display: grid;
  min-width: 0;
  min-height: 245px;
  grid-template-rows: auto auto 1fr auto;
  padding: 22px;
  border: 1px solid var(--color-line, #d6e2e8);
  border-radius: 8px;
  background: #fff;
}

.neo-lecture-card--past {
  background: #f8faf9;
}

.neo-lecture-card__meta,
.neo-lecture-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  color: var(--color-muted, #5b6973);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.neo-lecture-card h3 {
  margin: 14px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.neo-lecture-card h3 a {
  color: var(--color-ink, #18232d);
  text-decoration: none;
}

.neo-lecture-card h3 a:hover,
.neo-lecture-card h3 a:focus {
  color: var(--color-primary-dark, #103b53);
}

.neo-lecture-card > p {
  margin: 0 0 18px;
  color: var(--color-muted, #5b6973);
  font-size: 15px;
}

.neo-lecture-card__footer {
  padding-top: 14px;
  border-top: 1px solid var(--color-line, #d6e2e8);
}

.neo-lecture-card form {
  align-self: end;
  margin: 16px 0 0;
}

.neo-status-label {
  display: inline-flex;
  width: fit-content;
  color: #617074;
  font-size: 12px;
  font-weight: 700;
}

.neo-status-label.is-open {
  color: #08765f;
}

.neo-enrollment {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
}

.neo-enrollment p,
.neo-enrollment strong {
  margin: 0;
}

.neo-enrollment .button {
  width: 100%;
}

.neo-enrollment--closed {
  color: var(--color-muted, #5b6973);
  font-size: 14px;
}

.neo-enrollment--success {
  padding: 13px 15px;
  border-left: 3px solid #145a7a;
  background: #eaf5f2;
}

.neo-profile {
  max-width: 900px;
}

.neo-form-grid--profile {
  margin-bottom: 6px;
}

.neo-form-grid small {
  color: var(--color-muted, #5b6973);
  font-size: 12px;
}

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

  .neo-auth-panel + .neo-auth-panel {
    border-top: 1px solid var(--color-line, #d6e2e8);
    border-left: 0;
  }

  .neo-lecture-grid {
    grid-template-columns: 1fr;
  }

  .neo-lecture-card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .neo-auth-panel {
    padding: 22px 18px;
  }

  .neo-form-grid {
    grid-template-columns: 1fr;
  }

  .neo-form-wide {
    grid-column: auto;
  }

  .neo-account__header,
  .neo-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .neo-account-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .neo-account-nav a {
    flex: 0 0 auto;
  }

  .neo-my-lecture {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .neo-my-lecture__actions,
  .neo-my-lecture__actions .button,
  .neo-my-lecture__actions form {
    width: 100%;
  }
}
