/* Appily Twentytwo — account & dashboard chrome */
.auth-page {
  padding: 40px 0 64px;
  background: var(--cream);
}

.auth-page > .container {
  max-width: 1040px;
}

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

.auth-split-tabs {
  position: relative;
  display: flex;
  background: var(--plum-dark);
}

.auth-split-tab {
  flex: 1;
  padding: 16px 20px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1;
}

.auth-split-tab:hover { color: rgba(255, 255, 255, 0.9); }
.auth-split-tab.is-active { color: #fff; }

.auth-tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--sage-light);
  border-radius: 3px 3px 0 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

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

.auth-split-panel {
  padding: 36px 32px;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease;
  opacity: 0.6;
  transform: scale(0.98);
}

.auth-panel-signin { border-right: 1px solid var(--line); }
.auth-panel-register { background: var(--lilac); }

.auth-split-panel.is-focused {
  opacity: 1;
  transform: scale(1);
  background: var(--white);
  box-shadow: inset 0 0 0 2px rgba(224, 122, 95, 0.25);
  z-index: 1;
}

.auth-split-panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--ink);
}

.auth-split-panel .lead {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.92rem;
  max-width: 42ch;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 122, 69, 0.12);
}

.form-subhead {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--green-dark);
}

.auth-forgot-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.auth-dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 480px;
}

.auth-dash-sidebar {
  background: var(--plum-dark);
  color: #fff;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-dash-sidebar .eyebrow { color: var(--green-light); margin-bottom: 8px; }

.auth-dash-sidebar h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 18px;
  color: #fff;
}

.dash-nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.dash-nav-link:hover,
.dash-nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.auth-dash-main { padding: 28px 32px; text-align: left; }

.auth-dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

#profileVerifyNotice:not(:empty) { margin-bottom: 18px; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.profile-item {
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.profile-item .k {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.profile-item .v {
  display: block;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.profile-item .v.mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 500;
}

.orders-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.orders-head h3 {
  font-size: 1.15rem;
  margin: 0;
}

.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(--plum-dark);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 200;
}

.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); }
  .auth-split-panel { padding: 24px 18px; }
  .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: 16px; gap: 6px; }
  .auth-dash-sidebar h2 { width: 100%; margin-bottom: 6px; }
  .auth-dash-main { padding: 20px 16px; }
  .profile-grid { grid-template-columns: 1fr; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
