/* Account button + auth drawer */

.ps-header-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-silver);
  border-radius: 50%;
  background: #fff;
  color: var(--color-navy);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ps-header-account:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

body.ps-auth-drawer-open {
  overflow: hidden;
}

.ps-auth-drawer {
  position: fixed;
  inset: 0;
  z-index: 10060;
  pointer-events: none;
}

.ps-auth-drawer.is-open {
  pointer-events: auto;
}

.ps-auth-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ps-auth-drawer.is-open .ps-auth-drawer__overlay {
  opacity: 1;
}

.ps-auth-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  outline: none;
}

.ps-auth-drawer.is-open .ps-auth-drawer__panel {
  transform: translateX(0);
}

.ps-auth-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #ececec;
}

.ps-auth-drawer__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}

.ps-auth-drawer__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #666;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.ps-auth-drawer__close:hover {
  background: #f3f4f5;
  color: #111;
}

.ps-auth-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.35rem 1.25rem 2rem;
}

.ps-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  padding: 0.3rem;
  background: #f3f5f7;
  border-radius: 999px;
}

.ps-auth-tabs__btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 0.75rem;
  background: transparent;
  color: #6b7280;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ps-auth-tabs__btn.is-active {
  background: #fff;
  color: var(--color-navy);
  box-shadow: 0 1px 4px rgba(11, 35, 65, 0.08);
}

.ps-auth-panel[hidden] {
  display: none;
}

.ps-auth-form__field {
  margin-bottom: 1rem;
}

.ps-auth-form__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.ps-auth-form__field input[type="text"],
.ps-auth-form__field input[type="email"],
.ps-auth-form__field input[type="password"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #222;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ps-auth-form__field input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(13, 124, 140, 0.12);
}

.ps-auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.ps-auth-form__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
}

.ps-auth-form__forgot {
  font-size: 0.85rem;
  color: var(--color-teal);
  text-decoration: none;
}

.ps-auth-form__forgot:hover {
  text-decoration: underline;
}

.ps-auth-form__hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #7a828a;
  line-height: 1.5;
}

.ps-auth-form__note {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.ps-auth-form__note.is-error {
  background: #fdecea;
  color: #b42318;
}

.ps-auth-form__note.is-success {
  background: #e8f7ef;
  color: #0a5c42;
}

.ps-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: var(--color-navy);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s;
}

.ps-auth-btn:hover {
  background: var(--color-navy-light);
}

.ps-auth-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ps-auth-btn--ghost {
  margin-top: 1.25rem;
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-silver);
}

.ps-auth-btn--ghost:hover {
  background: #f4f7f9;
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.ps-auth-account__hello {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}

.ps-auth-account__email {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.ps-auth-account__links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ececec;
}

.ps-auth-account__links li {
  border-bottom: 1px solid #ececec;
}

.ps-auth-account__links a {
  display: block;
  padding: 0.9rem 0;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.ps-auth-account__links a:hover {
  color: var(--color-teal);
}

@media (max-width: 480px) {
  .ps-auth-drawer__panel {
    width: 100vw;
  }
}
