* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 207, 90, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(68, 166, 111, 0.13) 1px, transparent 1px),
    #fff8ea;
  background-size: 34px 34px;
  color: #1f2a2e;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  min-height: 100vh;
}

.intro-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(35, 68, 63, 0.96), rgba(25, 116, 86, 0.88)),
    #23443f;
  color: #fff;
}

.food-badge {
  width: 82px;
  height: 82px;
  margin-bottom: 24px;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.intro-panel h1 {
  margin: 0 0 16px;
  font-size: 42px;
}

.intro-panel p {
  max-width: 440px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-form {
  width: min(100%, 520px);
  padding: 30px;
  border: 2px solid #ffe0a3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(240, 90, 58, 0.16);
}

.auth-form[hidden] {
  display: none;
}

.otp-form input {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 6px;
}

.auth-form h2 {
  margin: 0 0 22px;
  font-size: 28px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e0b96d;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
  font-size: 16px;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.segmented-control legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-weight: 700;
}

.segmented-control label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  border: 1px solid #aebdb6;
  border-radius: 6px;
  cursor: pointer;
}

.segmented-control input {
  width: auto;
  min-height: auto;
  margin-right: 8px;
}

.business-fields {
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #d7e2dc;
  border-radius: 8px;
  background: #f7faf8;
}

.default-note {
  margin: 4px 0 18px;
  color: #586661;
  font-size: 14px;
}

button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: #f05a3a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(240, 90, 58, 0.24);
}

button:hover {
  background: #d94d30;
}

.form-message {
  min-height: 22px;
  color: #a02b1c;
  font-weight: 700;
}

.form-message.success {
  color: #19724a;
}

.switch-link {
  margin-bottom: 0;
  text-align: center;
}

a {
  color: #197456;
  font-weight: 700;
}

@media (max-width: 800px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }

  .intro-panel {
    min-height: 210px;
    padding: 32px 24px;
  }

  .food-badge {
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .intro-panel h1 {
    font-size: 32px;
  }

  .form-panel {
    padding: 24px 16px;
  }

  .auth-form {
    padding: 22px;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .intro-panel {
    min-height: 180px;
    padding: 26px 18px;
  }

  .form-panel {
    padding: 18px 12px 28px;
  }

  .auth-form {
    padding: 20px;
  }

  .business-fields {
    padding: 14px;
  }
}
