/* Appily Twentyseven — account chrome (login gate + dashboard) */
.auth-page {
  padding: 48px 0 72px;
  background: var(--ts-surface);
}
.auth-page > .container {
  max-width: 980px;
}

.auth-split-gate {
  background: var(--ts-paper);
  border: 1px solid var(--ts-line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-split-tabs {
  position: relative;
  display: flex;
  background: var(--ts-charcoal);
}
.auth-split-tab {
  flex: 1;
  padding: 16px 20px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .35s ease, background .35s ease;
  z-index: 1;
}
.auth-split-tab:hover {
  color: rgba(255, 255, 255, .9);
}
.auth-split-tab.is-active {
  color: var(--ts-gold);
}
.auth-tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--ts-gold);
  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(--ts-line);
}
.auth-panel-register {
  background: var(--ts-surface);
}
.auth-split-panel.is-focused {
  opacity: 1;
  transform: scale(1);
  background: var(--ts-paper);
  box-shadow: inset 0 0 0 2px rgba(139, 41, 66, .15);
  z-index: 1;
}

.auth-split-panel h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--ts-ink);
}
.auth-split-panel .lead {
  color: var(--ts-muted);
  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(--ts-ink);
}
.auth-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ts-line);
  font: inherit;
}
.auth-form input:focus {
  outline: 2px solid rgba(139, 41, 66, .25);
  border-color: var(--ts-wine);
}
.form-subhead {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 4px;
  color: var(--ts-charcoal);
}
.auth-forgot-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px dashed var(--ts-line);
}

.auth-dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--ts-paper);
  border: 1px solid var(--ts-line);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 480px;
}
.auth-dash-sidebar {
  background: var(--ts-charcoal);
  color: var(--ts-paper);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-dash-sidebar .eyebrow {
  color: var(--ts-gold);
  margin-bottom: 12px;
}
.auth-dash-sidebar h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 20px;
  color: var(--ts-paper);
}
.dash-nav-link {
  display: block;
  padding: 10px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.dash-nav-link:hover,
.dash-nav-link.is-active {
  background: rgba(196, 167, 125, .18);
  color: var(--ts-gold);
}
.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(--ts-surface);
  border: 1px solid var(--ts-line);
}
.profile-item .k {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ts-muted);
  margin-bottom: 6px;
}
.profile-item .v {
  display: block;
  font-weight: 600;
  color: var(--ts-ink);
  word-break: break-word;
  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;
}
.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(--ts-charcoal);
  color: var(--ts-paper);
  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(--ts-line);
  }
  .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;
  }
  .auth-dash-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .auth-dash-actions .btn {
    width: 100%;
    text-align: center;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
