/* Anmelden / Auth — Optik wie bestellung.html */

body.je-app-shell.ku-page--auth {
  --je-orange: #ff7a00;
  --je-orange-dark: #e56e00;
  --je-text: #111111;
  --je-muted: #6b6b6b;
  --je-line: #ececec;
  background: #fafafa;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--je-text);
  -webkit-font-smoothing: antialiased;
}

.je-auth {
  width: min(26.5rem, calc(100% - 1.7rem));
  margin: 0 auto;
  padding: 1.35rem 0 1.85rem;
}

.je-auth__intro {
  margin: 0 0 1.2rem;
  text-align: center;
}

.je-auth__avatar {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #ffe3c4;
  color: var(--je-orange);
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.1);
}

.je-auth__intro h1 {
  margin: 0 0 0.4rem;
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-align: center;
}

.je-auth__lead {
  margin: 0 auto;
  max-width: 20rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--je-muted);
  line-height: 1.5;
}

.je-auth__pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 1rem 0 0;
}

.je-auth__pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 3.55rem;
  padding: 0.45rem 0.3rem;
  border-radius: 12px;
  border: 1px solid var(--je-line);
  background: #fff;
  color: #444;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.je-auth__pill i {
  color: var(--je-orange);
  font-size: 0.82rem;
}

.je-auth__card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
  padding: 1.25rem 1.1rem 1.3rem;
}

.je-auth__card .ku-alert {
  border-radius: 12px;
  font-size: 0.86rem;
}

.je-auth .ku-field {
  margin-bottom: 0.95rem;
}

.je-auth .ku-field label,
.je-auth .ku-field__row label {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #333;
}

.je-auth .ku-field__link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--je-orange);
  text-decoration: none;
}

.je-auth .ku-field__link:hover {
  color: var(--je-orange-dark);
  text-decoration: underline;
}

.je-auth .ku-input-wrap input {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #f7f7f7;
  min-height: 3rem;
  font-size: 1rem;
}

body.je-app-shell.ku-page--auth .je-auth .ku-field input {
  border-radius: 12px;
  background: #f7f7f7;
}

.je-auth .ku-input-wrap input:focus {
  border-color: var(--je-orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.je-auth .ku-input-wrap__icon {
  color: #c0c0c0;
}

.je-auth .ku-input-wrap__toggle {
  color: #b0b0b0;
}

.je-auth .ku-btn--primary {
  margin-top: 0.35rem;
  min-height: 3.1rem;
  border-radius: 14px;
  background: var(--je-orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.22);
}

.je-auth .ku-btn--primary:hover:not(:disabled) {
  background: var(--je-orange-dark);
}

.je-auth .ku-auth-divider {
  margin: 1.25rem 0 1.05rem;
  color: #c5c5c5;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.je-auth .ku-auth-footer {
  gap: 0.7rem;
}

.je-auth .ku-auth-footer__lead {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--je-muted);
}

.je-auth .ku-btn--outline {
  min-height: 2.95rem;
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  background: #fff;
  color: var(--je-text);
  font-size: 0.94rem;
  font-weight: 800;
}

.je-auth .ku-btn--outline:hover {
  border-color: #ffd7ad;
  background: #fff8f1;
  color: var(--je-orange);
}

.je-auth .ku-auth-footer__guest {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #8a8a8a;
}

.je-auth .ku-auth-footer__guest:hover {
  color: var(--je-orange);
}

.je-auth .ku-check {
  margin: 0.55rem 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #f7f7f7;
  color: #555;
  font-size: 0.82rem;
}

.je-auth .ku-check a {
  color: var(--je-orange);
  font-weight: 700;
}

.je-auth .ku-success {
  margin: 0;
  padding: 1.15rem 1rem;
  border-radius: 14px;
  text-align: center;
  background: #f3fbf6;
  border: 1px solid #cfe9d8;
  color: #1f6b3f;
  font-size: 0.92rem;
  font-weight: 600;
}

.je-auth .ku-alert--ok {
  border-radius: 12px;
}

@media (min-width: 1024px) {
  .je-auth {
    width: min(27.5rem, calc(100% - 2.4rem));
    padding-top: 2.1rem;
  }

  .je-auth__card {
    padding: 1.45rem 1.4rem 1.4rem;
  }
}

/* ── Login neu (Chrome wie Bestellung / Konto) ───────────── */

body.ku-page--auth.je-order-page--app {
  --je-bg: #fafafa;
  --je-nav-h: 5.35rem;
  background: #fafafa;
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
}

body.ku-page--auth.je-order-page--app .je-app-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  max-width: none;
  z-index: 410;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-sizing: border-box;
  height: auto;
  min-height: 3.85rem;
  padding: 0.32rem 0.35rem calc(0.32rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: saturate(1.7) blur(22px);
  backdrop-filter: saturate(1.7) blur(22px);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px 24px 0 0;
  box-shadow:
    0 -10px 28px rgba(17, 17, 17, 0.08),
    0 -1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.ku-page--auth.je-order-page--app .je-app-tabs__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  border-radius: 16px;
  color: #9a9a9a;
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.28s ease;
}

body.ku-page--auth.je-order-page--app .je-app-tabs__item i {
  font-size: 1.12rem;
  line-height: 1;
  color: inherit;
  display: block;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.28s ease;
}

body.ku-page--auth.je-order-page--app .je-app-tabs__item.is-active {
  color: var(--je-orange);
  background: transparent;
}

.je-auth.je-auth--app {
  width: min(28.5rem, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: calc(var(--je-nav-h, 5.35rem) + 0.7rem) 0 1.4rem;
}

.je-auth-stage {
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(17, 17, 17, 0.06);
}

.je-auth-panel {
  position: relative;
  height: 11.2rem;
  overflow: hidden;
}

.je-auth-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.je-auth-panel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.05rem 1.15rem 1.1rem;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.08) 18%, rgba(10, 8, 6, 0.68) 100%);
  color: #fff;
}

.je-auth-panel__kicker {
  margin: 0 0 0.22rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.je-auth-panel__title {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.je-auth-panel__perks {
  display: none;
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
}

.je-auth-panel__perks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.je-auth-panel__perks li + li {
  margin-top: 0.48rem;
}

.je-auth-panel__perks i {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 8px;
  background: rgba(255, 122, 0, 0.92);
  color: #fff;
  font-size: 0.68rem;
}

.je-auth-card {
  padding: 1.15rem 1.1rem 1.25rem;
}

.je-auth-card__head {
  margin: 0 0 0.95rem;
}

.je-auth-card__kicker {
  display: none;
  margin: 0 0 0.28rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a847c;
}

.je-auth-card__head h1 {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #111;
}

.je-auth-card__lead {
  margin: 0.38rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--je-muted);
}

.je-auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 1.1rem;
  padding: 0.28rem;
  background: #f3f3f3;
  border: 1px solid #ececec;
  border-radius: 14px;
}

.je-auth-switch a {
  display: grid;
  place-items: center;
  min-height: 2.45rem;
  border-radius: 11px;
  color: #6b6b6b;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.je-auth-switch a.is-active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.08);
}

.je-auth--app .ku-alert {
  border-radius: 12px;
  font-size: 0.86rem;
}

.je-auth--app .ku-field {
  margin-bottom: 0.95rem;
}

.je-auth--app .ku-field label,
.je-auth--app .ku-field__row label {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #333;
}

.je-auth--app .ku-field__link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--je-orange);
  text-decoration: none;
}

.je-auth--app .ku-field__link:hover {
  color: var(--je-orange-dark);
  text-decoration: underline;
}

.je-auth--app .ku-input-wrap input {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #f7f7f7;
  min-height: 3.05rem;
  font-size: 1rem;
}

body.je-app-shell.ku-page--auth .je-auth--app .ku-field input {
  border-radius: 14px;
  background: #f7f7f7;
}

.je-auth--app .ku-input-wrap input:focus {
  border-color: var(--je-orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.je-auth--app .ku-input-wrap__icon {
  color: #c0c0c0;
}

.je-auth--app .ku-input-wrap__toggle {
  color: #b0b0b0;
}

.je-auth--app .ku-btn--primary {
  margin-top: 0.2rem;
  min-height: 3.15rem;
  border-radius: 14px;
  background: var(--je-orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.22);
}

.je-auth--app .ku-btn--primary:hover:not(:disabled) {
  background: var(--je-orange-dark);
}

.je-auth-guest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #8a8a8a;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.je-auth-guest i {
  font-size: 0.68rem;
}

.je-auth-guest:hover {
  color: var(--je-orange);
}

@media (min-width: 900px) {
  .je-auth.je-auth--app {
    width: min(54rem, calc(100% - 2.4rem));
    padding: calc(var(--je-nav-h, 5.35rem) + 1rem) 0 2rem;
  }

  .je-auth-stage {
    display: grid;
    grid-template-columns: minmax(16rem, 1.05fr) minmax(20rem, 1fr);
    align-items: stretch;
    min-height: 36.5rem;
    border-radius: 24px;
  }

  .je-auth-panel {
    position: relative;
    height: auto;
    min-height: 100%;
    align-self: stretch;
  }

  .je-auth-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .je-auth-panel__overlay {
    padding: 1.85rem 1.7rem 1.8rem;
    background: linear-gradient(180deg, rgba(10, 8, 6, 0.18) 10%, rgba(10, 8, 6, 0.72) 100%);
  }

  .je-auth-panel__title {
    font-size: 2.05rem;
  }

  .je-auth-panel__perks {
    display: block;
  }

  .je-auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.85rem 1.85rem;
  }

  .je-auth-card__kicker {
    display: block;
  }

  .je-auth-card__head h1 {
    font-size: 1.7rem;
  }
}

@media (min-width: 1024px) {
  body.ku-page--auth.je-order-page--app .je-app-tabs {
    display: none;
  }
}

@media (max-width: 899px) {
  .je-auth--register .je-auth-panel,
  .je-auth--simple .je-auth-panel {
    height: 8.6rem;
  }
}

.je-auth--app .ku-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.55rem 0;
  padding: 0.8rem 0.85rem;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #f7f7f7;
  color: #555;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.je-auth--app .ku-check input {
  margin-top: 0.12rem;
  accent-color: var(--je-orange);
}

.je-auth--app .ku-check a {
  color: var(--je-orange);
  font-weight: 700;
}

.je-auth--app .ku-success {
  margin: 0 0 1rem;
  padding: 1.15rem 1rem;
  border-radius: 14px;
  text-align: center;
  background: #f3fbf6;
  border: 1px solid #cfe9d8;
  color: #1f6b3f;
  font-size: 0.92rem;
  font-weight: 600;
}

.je-auth--app .ku-alert--ok {
  border-radius: 12px;
  background: #f3fbf6;
  border: 1px solid #cfe9d8;
  color: #1f6b3f;
}

.je-auth-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0.35rem 0 0.25rem;
  padding: 1.1rem 0.4rem 0.4rem;
  text-align: center;
}

.je-auth-status__mark {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 16px;
  background: #fff4ea;
  color: var(--je-orange);
  font-size: 1.2rem;
}

.je-auth-status .ku-verify__spinner {
  width: 1.45rem;
  height: 1.45rem;
  border-width: 2.5px;
  border-color: rgba(255, 122, 0, 0.2);
  border-top-color: var(--je-orange);
}

.je-auth-status .ku-verify__text {
  margin: 0;
  max-width: 22rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: #444;
}

.je-auth-status.ku-verify--ok .je-auth-status__mark {
  background: #eef8f1;
  color: #1f6b3f;
}

.je-auth-status.ku-verify--err .je-auth-status__mark {
  background: #fdecea;
  color: #9b1c1c;
}

.je-auth-status__ok,
.je-auth-status__err {
  display: none;
}

.je-auth-status.ku-verify--ok .je-auth-status__ok,
.je-auth-status.ku-verify--err .je-auth-status__err {
  display: block;
}

.je-auth-status.ku-verify--ok .ku-verify__spinner,
.je-auth-status.ku-verify--err .ku-verify__spinner {
  display: none;
}

.je-auth-status.ku-verify--ok .ku-verify__text {
  color: #1f6b3f;
}

.je-auth-status.ku-verify--err .ku-verify__text {
  color: #9b1c1c;
}

.je-auth--app .ku-links {
  margin: 0.85rem 0 0;
}

.je-auth--app .ku-links a {
  color: var(--je-orange);
  font-weight: 700;
  text-decoration: none;
}

.je-auth--app .ku-links a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .je-auth--register .je-auth-stage,
  .je-auth--simple .je-auth-stage {
    min-height: 32rem;
  }

  .je-auth--register .je-auth-panel,
  .je-auth--simple .je-auth-panel {
    height: auto;
    min-height: 100%;
  }

  .je-auth--register .je-auth-card {
    justify-content: flex-start;
    padding-top: 1.55rem;
    padding-bottom: 1.55rem;
  }
}
