/* Appily-One — account chrome (horizontal tab gate + sidebar dashboard) */
.auth-page {
  padding: 48px 0 72px;
  background: var(--cream-2, #F3EDE4);
}
.auth-page > .container {
  max-width: 980px;
}

/* Logged-out: animated split gate — sign-in left, register right */
.auth-split-gate {
  background: var(--white, #fff);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--line, rgba(61,35,20,.14));
  box-shadow: 0 24px 60px rgba(10,10,10,.1);
  overflow: hidden;
}

.auth-split-tabs {
  position: relative;
  display: flex;
  background: var(--black, #0A0A0A);
}
.auth-split-tab {
  flex: 1;
  padding: 16px 20px;
  border: 0;
  background: transparent;
  color: rgba(250,247,242,.55);
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .35s ease, background .35s ease;
  z-index: 1;
}
.auth-split-tab:hover {
  color: rgba(250,247,242,.85);
}
.auth-split-tab.is-active {
  color: var(--yellow, #F5C518);
}
.auth-tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--yellow, #F5C518);
  border-radius: 3px 3px 0 0;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), width .4s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.auth-split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.auth-split-panel {
  padding: 40px 36px;
  transition:
    opacity .45s cubic-bezier(.4, 0, .2, 1),
    transform .45s cubic-bezier(.4, 0, .2, 1),
    background .45s ease,
    box-shadow .45s ease;
  opacity: .55;
  transform: scale(.98);
}
.auth-panel-signin {
  border-right: 1px solid var(--line, rgba(61,35,20,.12));
}
.auth-panel-register {
  background: var(--cream-2, #F3EDE4);
}
.auth-split-panel.is-focused {
  opacity: 1;
  transform: scale(1);
  background: var(--white, #fff);
  box-shadow: inset 0 0 0 2px rgba(245,197,24,.25);
  z-index: 1;
}
.auth-split-gate[data-active="signin"] .auth-panel-signin.is-focused {
  animation: authPanelInLeft .5s cubic-bezier(.4, 0, .2, 1);
}
.auth-split-gate[data-active="register"] .auth-panel-register.is-focused {
  animation: authPanelInRight .5s cubic-bezier(.4, 0, .2, 1);
}

@keyframes authPanelInLeft {
  from { opacity: .4; transform: translateX(-12px) scale(.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes authPanelInRight {
  from { opacity: .4; transform: translateX(12px) scale(.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.auth-split-panel h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--roast, #3D2314);
}
.auth-split-panel .lead {
  color: var(--muted, #8A7B6E);
  margin: 0 0 28px;
  font-size: .92rem;
  max-width: 42ch;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}
.auth-form label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--roast, #3D2314);
}
.auth-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  font: inherit;
}
.form-subhead {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 4px;
  color: var(--roast-mid, #6F4E37);
}
.auth-forgot-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}

/* Logged-in: sidebar dashboard */
.auth-dash-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(10,10,10,.1);
  overflow: hidden;
  min-height: 480px;
}
.auth-dash-sidebar {
  background: var(--roast, #3D2314);
  color: var(--cream, #FAF7F2);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-dash-sidebar .eyebrow { color: var(--yellow); margin-bottom: 12px; }
.auth-dash-sidebar h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 20px;
  color: var(--cream);
}
.dash-nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius, 8px);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(250,247,242,.75);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.dash-nav-link:hover, .dash-nav-link.is-active {
  background: rgba(245,197,24,.15);
  color: var(--yellow);
}
.auth-dash-main {
  padding: 32px 36px;
  text-align: left;
}
.auth-dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
#profileVerifyNotice:not(:empty) {
  margin-bottom: 20px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  text-align: left;
}
.profile-item {
  padding: 16px;
  background: var(--cream-2, #F3EDE4);
  border-radius: var(--radius, 8px);
  border: 1px solid var(--line);
}
.profile-item .k {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 6px;
  text-align: left;
}
.profile-item .v {
  display: block;
  font-weight: 600;
  color: var(--roast);
  word-break: break-word;
  text-align: left;
  line-height: 1.4;
}
.profile-item .v.mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .82rem;
  font-weight: 500;
}
.orders-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 14px;
  clear: both;
}
.orders-head h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.orders-head .orders-view-all {
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: .78rem;
  white-space: nowrap;
}
.dash-panel { display: none; }
.dash-panel.is-active { display: block; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  padding: 14px 18px;
  background: var(--black);
  color: var(--cream);
  border-radius: var(--radius, 8px);
  font-size: .88rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 100;
}
.toast.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 720px) {
  .auth-split-panels {
    grid-template-columns: 1fr;
  }
  .auth-panel-signin {
    border-right: 0;
    border-bottom: 1px solid var(--line, rgba(61,35,20,.12));
  }
  .auth-split-panel {
    padding: 28px 20px;
  }
  .auth-split-panel:not(.is-focused) {
    display: none;
  }
  .auth-dash-layout { grid-template-columns: 1fr; }
  .auth-dash-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px 16px;
    gap: 8px;
  }
  .auth-dash-sidebar h2 { width: 100%; margin-bottom: 8px; }
  .auth-dash-main { padding: 24px 20px; }
  .orders-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .orders-head .orders-view-all {
    align-self: flex-start;
  }
}
