:root {
  --cream: #F5EFC6;
  --red: #4D0E12;
  --blue: #A5BCD6;
  --soil: #4A2E27;
  --brown: #231815;
  --white: #FFFFFF;
  --muted: #756b67;
  --line: #e7dfd7;
  --soft-cream: #fbf8e9;
  --error: #b42318;
  --success: #287443;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--soft-cream);
  color: var(--brown);
  font-family: "Nunito Sans", sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

/* HEADER */


.site-header {
  width: min(1200px, calc(100% - 64px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-logo-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  color: var(--brown);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.brand-name span {
  color: var(--red);
}

.header-login {
  color: var(--brown);
  font-size: 14px;
  text-decoration: none;
}

.header-login span {
  margin-left: 4px;
  color: var(--red);
  font-weight: 900;
}

.header-login:hover span {
  text-decoration: underline;
}

/* MAIN LAYOUT */

.page-container {
  width: min(1200px, calc(100% - 64px));
  min-height: 720px;
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(35, 24, 21, 0.08);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(35, 24, 21, 0.13);
}

/* WELCOME PANEL */

.welcome-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 58px 48px 28px;
  overflow: hidden;
  background: var(--cream);
}

.welcome-content {
  position: relative;
  z-index: 2;
}

.eyebrow,
.form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.welcome-content h1 {
  margin-top: 26px;
  color: var(--brown);
  font-size: clamp(42px, 4.3vw, 59px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2.6px;
}

.welcome-content h1 span {
  color: var(--red);
}

.welcome-description {
  max-width: 390px;
  margin-top: 22px;
  color: var(--soil);
  font-size: 15px;
  line-height: 1.85;
}

/* FEATURE LIST */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 34px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border: 1px solid rgba(77, 14, 18, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item strong,
.feature-item span {
  display: block;
}

.feature-item strong {
  color: var(--brown);
  font-size: 13px;
  font-weight: 900;
}

.feature-item div > span {
  margin-top: 2px;
  color: #76665e;
  font-size: 11px;
  line-height: 1.5;
}

/* DECORATIVE CLASSROOM CARD */

.decorative-area {
  position: relative;
  z-index: 1;
  height: 215px;
  margin: 25px -10px 8px;
}

.decor-circle {
  position: absolute;
  border-radius: 50%;
}

.circle-large {
  width: 210px;
  height: 210px;
  right: 2%;
  bottom: -70px;
  background: rgba(165, 188, 214, 0.48);
}

.circle-small {
  width: 80px;
  height: 80px;
  right: 58%;
  bottom: 12px;
  background: rgba(77, 14, 18, 0.09);
}

.learning-card {
  position: absolute;
  top: 15px;
  right: 9%;
  width: min(300px, 85%);
  padding: 20px;
  border: 1px solid rgba(35, 24, 21, 0.07);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(35, 24, 21, 0.13);
  transform: rotate(-3deg);
}

.mini-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--blue);
}

.mini-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.mini-card-tag {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.skeleton {
  height: 9px;
  border-radius: 20px;
  background: #eae6df;
}

.skeleton-title {
  width: 65%;
  height: 13px;
  margin-top: 19px;
  background: var(--soil);
  opacity: 0.8;
}

.skeleton-line {
  width: 95%;
  margin-top: 10px;
}

.skeleton-line.short {
  width: 63%;
  margin-top: 7px;
}

.mini-card-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid #eee9e4;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: -5px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--blue);
  color: var(--brown);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.avatar-stack i:first-child {
  margin-left: 0;
  background: var(--red);
  color: white;
}

.avatar-stack i:last-child {
  background: var(--soil);
  color: white;
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(35, 24, 21, 0.06);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 20px rgba(35, 24, 21, 0.09);
  color: var(--brown);
  font-size: 11px;
  font-weight: 800;
  transform: rotate(3deg);
}

.note-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e3f0e5;
  color: var(--success);
  font-size: 12px;
}

.welcome-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #786c5c;
  font-size: 10px;
}

/* SIGNUP PANEL */

.signup-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 42px clamp(30px, 5vw, 72px);
  background: var(--white);
}

.signup-card {
  width: 100%;
  max-width: 470px;
}

.mobile-brand {
  display: none;
}

.form-heading {
  margin-bottom: 26px;
}

.form-kicker {
  margin-bottom: 10px;
  font-size: 10px;
}

.form-heading h2 {
  color: var(--brown);
  font-size: 31px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
}

.form-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* FORM ELEMENTS */

#getStartedForm {
  width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-group label {
  color: var(--brown);
  font-size: 12px;
  font-weight: 800;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  outline: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  color: var(--brown);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input::placeholder {
  color: #aaa09a;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--red);
  background: white;
  box-shadow: 0 0 0 3px rgba(77, 14, 18, 0.08);
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: var(--error);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > svg {
  position: absolute;
  left: 13px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #8c817c;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 40px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 17px;
  right: 15px;
  width: 8px;
  height: 8px;
  border-right: 1.7px solid var(--soil);
  border-bottom: 1.7px solid var(--soil);
  transform: rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  padding-right: 35px;
  cursor: pointer;
}

.password-field input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.password-toggle:hover {
  text-decoration: underline;
}

.field-hint {
  color: #887d76;
  font-size: 10px;
}

.field-error {
  min-height: 0;
  color: var(--error);
  font-size: 10px;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.terms-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  color: #675d58;
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
}

.terms-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-checkbox {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid #b6aaa3;
  border-radius: 4px;
  background: white;
}

.terms-row input:checked + .custom-checkbox {
  border-color: var(--red);
  background: var(--red);
}

.terms-row input:checked + .custom-checkbox::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.terms-row input:focus-visible + .custom-checkbox {
  outline: 3px solid rgba(77, 14, 18, 0.2);
}

.terms-row a {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.terms-row a:hover {
  text-decoration: underline;
}

.terms-error {
  margin-top: -10px;
}

.form-message {
  display: none;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.5;
}

.form-message.show {
  display: block;
}

.form-message.error {
  border: 1px solid #f2c3c0;
  background: #fff4f3;
  color: var(--error);
}

.form-message.success {
  border: 1px solid #b8ddc2;
  background: #f0faf2;
  color: var(--success);
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  margin-top: 1px;
  padding: 10px 18px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.submit-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.submit-button:hover {
  background: #68171c;
  box-shadow: 0 7px 16px rgba(77, 14, 18, 0.17);
}

.submit-button:hover svg {
  transform: translateX(3px);
}

.submit-button:active {
  transform: scale(0.99);
}

.submit-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

/* LOGIN AND SECURITY */

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 21px 0 12px;
  color: #968b85;
  font-size: 10px;
  white-space: nowrap;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-link {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 25px;
  color: #8d827d;
  font-size: 10px;
}

.security-note svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #8d827d;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .site-header,
  .page-container {
    width: min(900px, calc(100% - 36px));
  }

  .page-container {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .welcome-panel {
    padding: 42px 30px 24px;
  }

  .welcome-content h1 {
    font-size: 43px;
  }

  .welcome-description {
    font-size: 13px;
  }

  .signup-panel {
    padding: 35px 28px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
  }

  .page-container {
    display: block;
    min-height: 0;
    margin-bottom: 25px;
  }

  .welcome-panel {
    display: none;
  }

  .signup-panel {
    padding: 32px 25px;
  }

  .signup-card {
    max-width: 500px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
  }

  .form-heading h2 {
    font-size: 29px;
  }
}

@media (max-width: 480px) {
  .site-header,
  .page-container {
    width: calc(100% - 24px);
  }

  .site-header {
    min-height: 65px;
  }

  .brand-name {
    font-size: 17px;
  }

  .header-login {
    font-size: 11px;
  }

  .signup-panel {
    padding: 27px 18px;
  }

  .name-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-heading {
    margin-bottom: 21px;
  }

  .form-heading h2 {
    font-size: 26px;
  }

  form {
    gap: 13px;
  }

  .form-group input,
  .form-group select {
    height: 45px;
  }
}