:root {
  --auth-yellow: #f5d64e;
  --auth-yellow-deep: #e6c53a;
  --auth-yellow-pale: #fbf2c4;
  --auth-yellow-soft: #fffbea;
  --auth-ink: #1c1c1c;
  --auth-muted: #7d7d7d;
  --auth-muted-soft: #a1a1a1;
  --auth-line: #e9e9e9;
  --auth-line-soft: #f1f1f1;
  --auth-surface: #ffffff;
  --auth-bg: #eef1f5;
  --auth-danger: #b73922;
  --auth-font: "Manrope", "Segoe UI", sans-serif;
  --auth-display: "Sora", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body.account-body {
  margin: 0;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(245, 214, 78, 0.2), transparent 30%),
    radial-gradient(circle at 88% 92%, rgba(245, 214, 78, 0.13), transparent 28%),
    var(--auth-bg);
  font-family: var(--auth-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  width: min(100%, 460px);
  min-height: min(860px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--auth-surface);
  border: 1px solid rgba(28, 28, 28, 0.05);
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(28, 28, 28, 0.14);
}

.auth-topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--auth-ink);
  text-decoration: none;
}

.auth-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--auth-ink);
  background: var(--auth-yellow);
  border-radius: 10px;
}

.auth-brand-mark svg {
  width: 19px;
  height: 19px;
}

.auth-brand-mark--logo {
  width: calc(34px * var(--auth-brand-scale, 1));
  height: calc(34px * var(--auth-brand-scale, 1));
  overflow: hidden;
  background: transparent;
}
.auth-brand-mark--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-word {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--auth-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
}

.auth-brand-word small {
  color: var(--auth-muted-soft);
  font-family: var(--auth-font);
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.auth-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--auth-ink);
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.auth-close:hover {
  background: var(--auth-yellow-soft);
  border-color: #ecd77f;
  transform: rotate(4deg);
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
}

.auth-view {
  width: 100%;
}

.auth-welcome {
  margin: auto 0;
  text-align: center;
}

.auth-hero-avatar {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto 22px;
}

.auth-hero-photo {
  width: 118px;
  height: 118px;
  display: block;
  overflow: hidden;
  background: var(--auth-yellow-pale);
  border: 6px solid var(--auth-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--auth-line), 0 16px 32px rgba(28, 28, 28, 0.12);
}

.auth-hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.auth-hero-spark {
  position: absolute;
  right: -2px;
  bottom: 6px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--auth-ink);
  background: var(--auth-yellow);
  border: 4px solid var(--auth-surface);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.auth-heading {
  max-width: 340px;
  margin: 0 auto;
}

.auth-heading-left {
  max-width: none;
  margin: 0;
}

.auth-kicker {
  display: block;
  margin-bottom: 9px;
  color: #9a7b00;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.auth-heading h1 {
  margin: 0;
  font-family: var(--auth-display);
  font-size: clamp(25px, 7vw, 30px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.auth-heading h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--auth-yellow-pale) 62%);
}

.auth-heading p {
  margin: 10px 0 0;
  color: var(--auth-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.auth-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.auth-btn:active {
  transform: scale(0.985);
}

.auth-btn-primary {
  color: var(--auth-ink);
  background: var(--auth-yellow);
  box-shadow: 0 12px 26px rgba(245, 214, 78, 0.3);
}

.auth-btn-primary:hover {
  background: var(--auth-yellow-deep);
}

.auth-btn-primary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-btn-block {
  width: 100%;
}

.auth-btn-outline {
  color: var(--auth-ink);
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
}

.auth-btn-outline:hover {
  background: var(--auth-yellow-soft);
  border-color: #ecd77f;
}

.auth-welcome > .auth-btn {
  max-width: 340px;
  margin: 22px auto 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 19px 0 14px;
  color: var(--auth-muted-soft);
  font-size: 9px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-line-soft);
}

.auth-social-list {
  max-width: 340px;
  margin: 0 auto;
  display: grid;
  gap: 9px;
}

.auth-social {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  color: var(--auth-ink);
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.auth-social:hover {
  background: #fafafa;
  border-color: #dcdcdc;
}

.auth-social-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: none;
}

.auth-social-icon svg,
.auth-social-circle svg {
  width: 19px;
  height: 19px;
  display: block;
}

.auth-social > span:last-child {
  margin-left: auto;
  color: var(--auth-muted-soft);
}

.auth-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.auth-social-circle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.auth-social-circle:hover {
  background: var(--auth-yellow-soft);
  border-color: #ecd77f;
  transform: translateY(-1px);
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--auth-muted);
  font-size: 11px;
  text-align: center;
}

.auth-switch button {
  padding: 0;
  color: var(--auth-ink);
  background: transparent;
  border: 0;
  font-size: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #d7bd3d;
  text-underline-offset: 3px;
}

.auth-switch button:hover {
  color: #7a5f00;
}

.auth-view-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}

.auth-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--auth-ink);
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 50%;
}

.auth-back:hover {
  background: var(--auth-yellow-soft);
}

.auth-view-top .auth-kicker {
  margin: 0;
}

.auth-avatar-small {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 2px 0 18px;
}

.auth-avatar-small-photo {
  width: 78px;
  height: 78px;
  display: block;
  overflow: hidden;
  background: var(--auth-yellow-pale);
  border: 5px solid var(--auth-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--auth-line), 0 10px 24px rgba(28, 28, 28, 0.1);
}

.auth-avatar-small-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.auth-avatar-plus {
  position: absolute;
  right: -1px;
  bottom: 2px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--auth-ink);
  background: var(--auth-yellow);
  border: 3px solid var(--auth-surface);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.auth-form {
  display: grid;
  gap: 13px;
  margin-top: 19px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field > span:first-child {
  color: #4b4b4b;
  font-size: 10.5px;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  color: var(--auth-ink);
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 13px;
  outline: none;
  font-size: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-field input::placeholder {
  color: #b2b2b2;
}

.auth-field input:focus {
  background: #fffdf4;
  border-color: var(--auth-yellow);
  box-shadow: 0 0 0 3px rgba(245, 214, 78, 0.22);
}

.auth-field small {
  color: var(--auth-muted-soft);
  font-size: 9px;
}

.auth-password {
  position: relative;
  display: block;
}

.auth-password input {
  padding-right: 43px;
}

.auth-eye {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: var(--auth-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.auth-eye:hover {
  color: var(--auth-ink);
  background: var(--auth-yellow-soft);
}

.auth-error {
  margin: -2px 0 0;
  padding: 9px 11px;
  color: var(--auth-danger);
  background: #fff3f0;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.auth-form .auth-btn {
  margin-top: 2px;
}

.auth-legal {
  margin: 13px 0 0;
  color: var(--auth-muted-soft);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.auth-footer {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px 22px 14px;
  border-top: 1px solid var(--auth-line-soft);
}

.auth-footer p {
  margin: 0;
  color: var(--auth-muted-soft);
  font-size: 9px;
}

.auth-footer a {
  color: var(--auth-ink);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Account dashboard */
.auth-account {
  padding-top: 4px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  background: linear-gradient(135deg, var(--auth-yellow-soft), #ffffff);
  border: 1px solid #f1e6b5;
  border-radius: 18px;
}

.account-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--auth-ink);
  background: var(--auth-yellow);
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ead36b, 0 8px 18px rgba(28, 28, 28, 0.1);
  font-family: var(--auth-display);
  font-size: 17px;
  font-weight: 800;
}

.account-profile-copy {
  min-width: 0;
}

.account-profile-copy .auth-kicker {
  margin-bottom: 5px;
}

.account-profile-copy h1 {
  margin: 0;
  font-family: var(--auth-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.account-profile-copy p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--auth-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-role {
  margin-left: auto;
  padding: 5px 8px;
  color: #6f5700;
  background: var(--auth-yellow-pale);
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}

.account-quick-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.account-quick-card:hover {
  background: var(--auth-yellow-soft);
  border-color: #ecd77f;
  transform: translateY(-1px);
}

.account-quick-card > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-quick-card strong {
  font-size: 10.5px;
  font-weight: 800;
}

.account-quick-card small {
  overflow: hidden;
  color: var(--auth-muted-soft);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-quick-card > span:last-child {
  margin-left: auto;
  color: var(--auth-muted-soft);
}

.account-quick-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  color: #7a5f00;
  background: var(--auth-yellow-pale);
  border-radius: 10px;
}

.account-orders {
  margin-top: 24px;
}

.account-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.account-section-head .auth-kicker {
  margin-bottom: 4px;
}

.account-section-head h2 {
  margin: 0;
  font-family: var(--auth-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.account-order-count {
  padding-bottom: 3px;
  color: var(--auth-muted-soft);
  font-size: 9.5px;
}

.account-orders-list {
  display: grid;
  gap: 9px;
}

.account-loading {
  padding: 24px;
  color: var(--auth-muted-soft);
  background: #fafafa;
  border-radius: 14px;
  font-size: 10.5px;
  text-align: center;
}

.account-order {
  padding: 13px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 15px;
}

.account-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.account-order-top > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-order-top strong {
  font-size: 10.5px;
  font-weight: 800;
}

.account-order-top span {
  color: var(--auth-muted-soft);
  font-size: 8.5px;
}

.order-status {
  flex: none;
  padding: 4px 7px;
  color: #6f5700;
  background: var(--auth-yellow-pale);
  border-radius: 999px;
  font-size: 7px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-status.dikirim {
  color: #1f5b86;
  background: #e7f3fb;
}

.order-status.selesai {
  color: #28643c;
  background: #e8f6ec;
}

.order-status.dibatalkan {
  color: #9a3527;
  background: #fdeeea;
}

.account-order-items {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
}

.order-thumb {
  width: 37px;
  height: 37px;
  display: block;
  overflow: hidden;
  flex: none;
  background: #f4f4f4;
  border-radius: 9px;
}

.order-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.order-thumb-more {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--auth-muted);
  background: #f4f4f4;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}

.account-order-items strong {
  min-width: 0;
  overflow: hidden;
  margin-left: 2px;
  font-size: 9.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--auth-line-soft);
}

.account-order-foot span {
  color: var(--auth-muted-soft);
  font-size: 8.5px;
}

.account-order-foot strong {
  font-family: var(--auth-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.account-empty {
  padding: 25px 18px;
  background: #fafafa;
  border: 1px dashed #e1e1e1;
  border-radius: 15px;
  text-align: center;
}

.account-empty > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0 auto 9px;
  color: #7a5f00;
  background: var(--auth-yellow-pale);
  border-radius: 50%;
}

.account-empty strong {
  display: block;
  font-family: var(--auth-display);
  font-size: 14px;
  font-weight: 700;
}

.account-empty p {
  margin: 5px 0 12px;
  color: var(--auth-muted);
  font-size: 10px;
  line-height: 1.6;
}

.account-empty a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  color: var(--auth-ink);
  background: var(--auth-yellow);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  text-decoration: none;
}

.account-admin-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
  color: #6f5700;
  background: var(--auth-yellow-soft);
  border: 1px solid #f1e6b5;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.account-logout {
  margin-top: 12px;
}

.auth-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 100;
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 15px;
  color: #ffffff;
  background: var(--auth-ink);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(28, 28, 28, 0.24);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s, transform 0.22s;
}

.auth-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth-toast.error {
  background: #8e2f21;
}

@media (max-width: 520px) {
  body.account-body {
    background: var(--auth-surface);
  }

  .auth-page {
    display: block;
    padding: 0;
  }

  .auth-shell {
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-topbar {
    padding-top: env(safe-area-inset-top);
  }

  .auth-main {
    padding: 8px 21px 22px;
  }

  .auth-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .auth-heading h1 {
    font-size: 27px;
  }

  .auth-welcome {
    padding-top: 4vh;
  }
}

@media (min-width: 900px) and (min-height: 900px) {
  .auth-shell {
    min-height: 820px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
