.access-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.access-main {
  flex: 1;
  padding-block: clamp(1rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
}
.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-inline-end: 6px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px var(--pink);
}
.access-intro,
.access-form {
  padding: clamp(1.4rem, 5vw, 4rem);
}
.access-intro {
  background: var(--ink);
  color: var(--paper);
}
.access-intro h1 {
  font-size: clamp(3.15rem, 7vw, 6rem);
}
.access-intro p {
  margin-bottom: 0;
  max-width: 32ch;
}
.access-form {
  align-self: center;
}
.access-form form {
  display: grid;
  gap: .65rem;
}
.access-form label {
  font-weight: 800;
}
.access-form input {
  min-width: 0;
  min-height: 46px;
  width: 100%;
  padding: .65rem .8rem;
  background: white;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: .45rem;
}
.access-form input,
.access-form button {
  font: inherit;
}
.access-form button {
  font-weight: 800;
  cursor: pointer;
}
.access-form .button {
  width: 100%;
}
.access-form .access-google {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
}
.access-form .access-google:hover { background: #f0f4ff; }
.access-google-icon { width: 1.3rem; height: 1.3rem; flex: none; }
.access-form .profile-delete-button { width: auto; }
.access-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-block: 1rem;
  font-size: .9rem;
}
.access-divider::before,
.access-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid currentColor;
  opacity: .35;
}
.access-alert {
  padding: .7rem .85rem;
  border-inline-start: 3px solid var(--pink);
  background: #ffe2ee;
}
.access-alert:empty {
  display: none;
}
@media (max-width: 680px) {
  .access-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.access-form select {
  width: 100%;
  min-height: 46px;
  padding: .65rem .8rem;
  color: var(--ink);
  background: white;
  border: 2px solid var(--ink);
  border-radius: .45rem;
  font: inherit;
}
.access-form small {
  margin-block: -.35rem .4rem;
}

.profile-setup {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
}
.profile-setup .access-form {
  align-self: start;
  padding: clamp(1.25rem, 4vw, 3rem);
}
.profile-setup fieldset {
  min-width: 0;
  margin: 0 0 .7rem;
  padding: 1rem;
  border: 1px solid var(--ink);
}
.profile-setup fieldset[hidden] {
  display: none;
}
.profile-setup legend {
  padding-inline: .45rem;
  font-weight: 800;
}
.profile-field {
  display: grid;
  gap: .3rem;
  margin-bottom: .9rem;
}
.profile-field:last-child {
  margin-bottom: 0;
}
.profile-field small {
  margin: 0;
}
.profile-field input[readonly] {
  background: var(--paper);
}
.profile-field textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 2px solid var(--ink);
  border-radius: .45rem;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.profile-setup .profile-genres {
  padding: .55rem 0 .7rem;
  border: 0;
}
.profile-genres legend {
  padding: 0;
}
.profile-genres div {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.profile-genres label {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .55rem;
  border: 1px solid var(--ink);
  border-radius: 1rem;
  font-size: .88rem;
  cursor: pointer;
}
.profile-genres input {
  width: 1rem;
  min-height: 1rem;
  accent-color: var(--ink);
}
@media (max-width: 760px) {
  .profile-setup {
    grid-template-columns: minmax(0, 1fr);
  }
}

.profile-setup .profile-socials {
  padding: .55rem 0 .7rem;
  border: 0;
}
.profile-socials legend {
  padding: 0;
}
.profile-socials p {
  margin: 0 0 .7rem;
  font-size: .88rem;
}
.profile-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.profile-social-grid .profile-field {
  margin: 0;
}
.profile-social-previous {
  margin-top: .75rem;
  font-size: .88rem;
}
.profile-social-previous p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  .profile-social-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.profile-delete-button { background: #ad1763; color: #fff; border: 2px solid #ad1763; margin-top: 1rem; }
.profile-delete-button:hover { background: #86134d; color: #fff; }
#delete-profile-dialog { max-width: min(31rem, calc(100% - 2rem)); padding: 1.3rem; border: 2px solid #ad1763; color: var(--ink); background: #fffaf2; }
#delete-profile-dialog::backdrop { background: #19234080; }
#delete-profile-dialog label { display: flex; align-items: baseline; gap: .5rem; margin-top: 1rem; }
#delete-profile-dialog input[type="checkbox"] { width: auto; }
#delete-profile-dialog .profile-delete-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; }
