.account-access {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  max-width: 900px;
  margin-inline: auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 44px #57362a10;
}
.access-main {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  padding: clamp(28px, 4.6vw, 54px);
}
.access-main h1 {
  margin: 0 0 8px;
  font: 550 clamp(28px, 3.4vw, 39px)/1.12 var(--sans);
  letter-spacing: -.045em;
}
.access-switch, .access-method-note, .access-support {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.access-method-note, .access-support { margin-top: 12px; font-size: 12px; }
.access-main > .access-switch { display: none; }
.access-support { text-align: center; }
.access-main a {
  color: var(--wine);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.access-main a:hover { color: var(--wine-dark); text-decoration-thickness: 2px; }
.access-form {
  display: grid;
  gap: 16px;
  margin: 25px 0 0;
}
.access-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
.access-field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #a39897;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-size: 16px;
  font-weight: 400;
}
.access-field small, .access-remember small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.access-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.access-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; }
.access-remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.access-remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--wine); }
.access-submit {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font: 650 15px/1.4 var(--sans);
  cursor: pointer;
}
.access-submit:hover { background: var(--wine-dark); }
.access-registration { gap: 14px; }
.access-profile-hint { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.access-error {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--wine);
  color: var(--wine-dark);
  background: #fff0ec;
  font-size: 14px;
}
.access-main .access-return {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 9px 16px;
  border: 1px solid #aa908e;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}
.access-main .access-return:hover { background: #f7f4ef; border-color: var(--wine-dark); }
.access-providers { margin-top: 20px; }
.access-providers h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 13px;
  color: var(--ink);
  text-align: center;
  font: 650 15px/1.4 var(--sans);
}
.access-providers h2::before, .access-providers h2::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.access-provider-list { display: grid; gap: 8px; }
.access-providers .access-provider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 6px 15px 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--provider-ink, #fff);
  background: var(--provider-bg);
  text-decoration: none;
  font: 650 14px/1.3 var(--sans);
}
.access-providers a.access-provider:hover { text-decoration: underline; }
.access-provider--afford { --provider-bg: #f9efe1; --provider-ink: #4c2919; }
.access-providers .access-provider--afford { border-color: #bca381; }
.access-provider--facebook { --provider-bg: #235494; }
.access-provider--x { --provider-bg: #273a49; }
.access-provider--dribbble { --provider-bg: #963862; }
.access-more-providers .access-provider { --provider-bg: #fff; --provider-ink: #243953; border-color: #a3afba; margin-top: 6px; }
.access-more-providers .access-provider-icon::before { content: "↗"; font: 650 22px/1 var(--sans); }
.access-provider img { flex: 0 0 auto; width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.access-provider-icon {
  position: relative;
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.access-provider--facebook .access-provider-icon::before { content: "f"; font: 700 27px/1 Arial, sans-serif; }
.access-provider--x .access-provider-icon::before { content: "𝕏"; font: 22px/1 "Cambria Math", serif; }
.access-provider--google .access-provider-icon::before { content: "G"; color: #1855a2; font: 700 21px/1 Arial, sans-serif; }
.access-provider--dribbble .access-provider-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(ellipse at 17% -20%, transparent 56%, currentColor 58% 62%, transparent 65%),
              radial-gradient(ellipse at 87% 125%, transparent 59%, currentColor 61% 65%, transparent 68%),
              linear-gradient(61deg, transparent 45%, currentColor 48% 53%, transparent 56%);
}
.access-provider-unavailable small { display: block; font: 400 11px/1.35 var(--sans); }
.access-more-providers { margin-top: 8px; }
.access-more-providers summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  margin-inline: auto;
  padding: 6px 18px;
  border: 1px solid #b79fa0;
  border-radius: 999px;
  color: var(--wine);
  text-align: center;
  font: 600 13px/1.4 var(--sans);
  list-style: none;
  cursor: pointer;
}
.access-more-providers summary::-webkit-details-marker { display: none; }
.access-more-providers summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: translateY(-2px) rotate(45deg);
}
.access-more-providers[open] summary::after { transform: translateY(2px) rotate(225deg); }
.access-more-providers .access-less-label, .access-more-providers[open] .access-more-label { display: none; }
.access-more-providers[open] .access-less-label { display: inline; }
.access-more-providers summary:hover { background: #f7f4ef; text-decoration: underline; }
.access-more-providers summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.access-welcome {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 485px;
  padding: clamp(22px, 3vw, 36px);
  overflow: hidden;
  text-align: center;
  color: #182f42;
  background:
    radial-gradient(ellipse at 44% 27%, #f2fbf8 0, #e4f2f080 36%, transparent 67%),
    linear-gradient(145deg, #b1d7da 0%, #d5e8e6 46%, #b9cada 83%, #9db1c9);
}
.access-welcome::before, .access-welcome::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 148%;
  aspect-ratio: 1;
  top: 64%;
  left: -54%;
  transform: rotate(-28deg);
  border: 1px solid #31536c4a;
  border-radius: 42%;
}
.access-welcome::after { top: 68%; left: -53%; border: 9px solid #fff9; }
.access-phoenix {
  display: block;
  width: min(100%, clamp(200px, 22vw, 270px));
  height: auto;
}
.access-greeting { margin: 3px 0 13px; font: 400 clamp(25px, 3vw, 37px)/1.15 var(--serif); letter-spacing: -.032em; }
.access-welcome .access-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; color: #243c4d; }
.access-welcome .access-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid #68818d;
  border-radius: 999px;
  color: #18384a;
  background: #f8ffff94;
  font-weight: 650;
  text-decoration: none;
}
.access-welcome .access-switch a:hover { background: #ffffffd9; border-color: #365868; }
.access-welcome .access-switch a:focus-visible { outline-color: #284e67; }
@media (max-width: 730px) {
  .page-main:has(.account-access) { padding-block: 28px 46px; }
  .account-access { max-width: 510px; grid-template-columns: 1fr; }
  .access-main, .access-welcome { grid-column: 1; grid-row: auto; }
  .access-main { padding: clamp(22px, 5.5vw, 36px); }
  .access-main > .access-switch { display: block; }
  .access-welcome { min-height: 0; padding: 22px 24px 26px; }
  .access-phoenix { width: 146px; }
  .access-greeting { margin: 0 0 8px; font-size: 24px; }
}
@media (max-width: 410px) {
  .access-names { grid-template-columns: 1fr; gap: 16px; }
  .access-remember small { display: block; }
  .access-welcome { padding-inline: 18px; }
}
