/*
 * PsyGuild account auth panel.
 */

.pg-account-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 80px -56px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(20px);
  padding: clamp(22px, 4vw, 36px);
}

.pg-auth-page {
  padding: clamp(48px, 7vw, 88px) 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(6, 182, 212, 0.13), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, 0.12), transparent 30%);
}

.pg-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.pg-auth-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--pg-text-main);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.pg-auth-copy > p:not(.pg-account-panel__eyebrow) {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--pg-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.pg-auth-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  max-width: 520px;
}

.pg-auth-feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pg-text-soft);
  font-weight: 800;
}

.pg-auth-feature-list span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #06b6d4;
  box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.10);
}

.pg-account-panel--compact {
  border-radius: 24px;
  padding: 24px;
}

.pg-account-panel__head {
  margin-bottom: 22px;
}

.pg-account-panel__eyebrow {
  margin: 0 0 8px;
  color: #0891b2;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pg-account-panel__head h2,
.pg-account-panel__user h2 {
  margin: 0;
  color: var(--pg-text-main);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.pg-account-panel__head p,
.pg-account-panel__user p {
  margin: 10px 0 0;
  color: var(--pg-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.pg-account-panel__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: #f1f5f9;
  margin-bottom: 18px;
}

.pg-account-panel__tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--pg-text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.pg-account-panel__tabs button.is-active {
  background: #fff;
  color: #0891b2;
  box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.5);
}

.pg-google-auth-btn,
.pg-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 0;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.pg-google-auth-btn {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  color: var(--pg-text-main);
}

.pg-google-auth-btn:hover {
  border-color: rgba(6, 182, 212, 0.32);
  color: #0891b2;
}

.pg-google-auth-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.pg-account-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--pg-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pg-account-divider::before,
.pg-account-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.pg-account-form {
  display: none;
  gap: 14px;
}

.pg-account-form.is-active {
  display: grid;
}

.pg-account-form label {
  display: grid;
  gap: 7px;
  color: var(--pg-text-main);
  font-size: 0.82rem;
  font-weight: 900;
}

.pg-account-form input[type="text"],
.pg-account-form input[type="email"],
.pg-account-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.76);
  color: var(--pg-text-main);
  font: inherit;
  padding: 0 14px;
}

.pg-account-form input:focus {
  outline: 0;
  border-color: rgba(6, 182, 212, 0.48);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.10);
  background: #fff;
}

.pg-account-password {
  position: relative;
  display: block;
}

.pg-account-password input {
  padding-right: 70px !important;
}

.pg-account-password button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #0891b2;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.pg-account-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pg-account-check {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: var(--pg-text-muted) !important;
  font-size: 0.8rem !important;
}

.pg-account-link {
  border: 0;
  background: transparent;
  color: #0891b2;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
}

.pg-account-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  box-shadow: 0 18px 34px -22px rgba(37, 99, 235, 0.8);
}

.pg-account-btn--ghost {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  color: var(--pg-text-soft);
}

.pg-account-help {
  margin: 0;
  color: var(--pg-text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.pg-account-panel__user {
  display: flex;
  gap: 16px;
  align-items: center;
}

.pg-account-panel__user img {
  border-radius: 999px;
  border: 4px solid #fff;
  box-shadow: 0 14px 32px -22px rgba(15, 23, 42, 0.7);
}

.pg-account-panel__actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 520px) {
  .pg-account-panel__tabs {
    grid-template-columns: 1fr;
  }

  .pg-account-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .pg-auth-layout {
    grid-template-columns: 1fr;
  }
}
