.account-page {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 120px 20px 80px;
}

.account-auth.is-hidden,
.account-profile.is-hidden {
  display: none;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 160ms ease, border-color 160ms ease;
}

.auth-tab.is-active {
  color: var(--ink);
  border-color: var(--ink);
}

.auth-panel {
  display: grid;
  gap: 16px;
}

.auth-panel.is-hidden {
  display: none;
}

.avatar-row {
  display: grid;
  place-items: center;
}

.avatar-upload {
  display: grid;
  place-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(17, 17, 15, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-circle svg {
  width: 36px;
  height: 36px;
}

.avatar-button {
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.avatar-button:hover {
  color: var(--ink);
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 160ms ease;
}

.field input:focus {
  outline: none;
  border-color: var(--ink);
}

.field input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary-button:hover:not(:disabled) {
  opacity: 0.82;
}

.form-message {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  min-height: 1.4em;
}

.form-message.is-error {
  color: #c62828;
}

.form-message.is-success {
  color: #2e7d32;
}

.profile-card {
  text-align: center;
  display: grid;
  gap: 16px;
  place-items: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(17, 17, 15, 0.06);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h2 {
  margin: 0;
  font-size: 28px;
  color: var(--ink);
}

.profile-email {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.profile-card .primary-button {
  max-width: 200px;
}
