.account-layout {
  display: grid;
  min-height: calc(100svh - var(--header-height) - 1px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-photo {
  position: relative;
  background: #101826;
}

.account-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 60%;
}

.account-panel {
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4.5vw, 4rem);
  background: var(--paper);
}

.account-card {
  width: min(100%, 24rem);
}

.account-description {
  margin-top: .65rem;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.account-card fieldset {
  display: grid;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-description:empty { display: none; }
#account-link-form > fieldset { margin-top: 1.65rem; }

.account-card input {
  width: 100%;
  min-height: 3rem;
  margin-bottom: .95rem;
  padding: .6rem .8rem;
  border: 1px solid #8293a5;
  border-radius: .55rem;
  background: var(--white);
}

.account-card input[type="email"]::placeholder {
  color: #646870;
  font-size: .8125rem;
  font-weight: 350;
  opacity: 1;
}

.account-card input:disabled {
  border-color: var(--line);
  background: var(--paper);
}

.account-submit {
  margin-top: .2rem;
  font-family: inherit;
  cursor: pointer;
}

.account-submit:disabled {
  background: #e1e7ee;
  color: var(--muted);
  cursor: default;
}

.account-status, .account-error, .account-switch {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.55;
}

.account-status:not(:empty), .account-error:not(:empty) { margin-top: 1rem; }
.account-error { color: #a61b1b; }

.account-actions {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.1rem;
  margin-top: .55rem;
}

.account-actions button {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.account-actions button:disabled {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}

.account-switch {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.account-switch > a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 51rem) {
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-photo { min-height: clamp(9rem, 34vw, 16rem); }
  .account-panel { padding-block: 1.5rem 2.5rem; }
}

.account-actions[hidden] { display: none; }
