/* CookandChef Institute Portal — shared layout & mobile-first utilities */

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
}

/* Prevent flex/grid children from forcing horizontal scroll */
.portal-layout-root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.portal-main-scroll {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Sign-up wizard step back (in-page, not header) */
.signup-wizard-back {
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 0.25rem 0;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s ease;
}

.signup-wizard-back:hover {
  color: #ea580c;
}

.signup-wizard-back.hidden {
  display: none;
}

/* Touch-friendly form controls on auth & onboarding flows */
.portal-form-input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  border: 0;
  background-color: #f1f5f9;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #0f172a;
}

.portal-form-input::placeholder {
  color: #94a3b8;
}

.portal-form-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #f97316;
}

.portal-form-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
