:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #686863;
  --line: #deded9;
  --green: #238636;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: #ffffff;
}

body {
  min-width: 300px;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.account-page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.account-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

h1 {
  margin: 0 0 7px;
  font-size: 1.65rem;
  letter-spacing: -0.045em;
}

.intro,
.storage-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

form {
  display: grid;
  margin-top: 24px;
  gap: 8px;
}

form[hidden] {
  display: none;
}

label {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #bdbdb7;
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1rem;
}

input:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  gap: 8px;
}

button,
.primary-link {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button,
.primary-link {
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  background: var(--green);
  color: #ffffff;
  text-decoration: none;
}

.secondary-button,
.plain-button {
  border: 1px solid #bdbdb7;
  background: #ffffff;
  color: var(--ink);
}

.status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.4;
}

.storage-note {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid #ecece8;
  font-size: 0.73rem;
}

.signed-in {
  display: grid;
  margin-top: 24px;
  gap: 9px;
}

.signed-in[hidden] {
  display: none;
}

.signed-in span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.signed-in strong {
  margin-bottom: 8px;
  font-size: 1.2rem;
}
