html,
body {
  margin: 0;
  min-height: 100%;
  background: rgb(118, 38, 112);
}

* {
  box-sizing: border-box;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: rgb(53, 50, 76);
}

.background-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.tile {
  position: absolute;
  width: 44px;
  height: 44px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: auto;
  border-radius: 4px;
  box-sizing: border-box;
}

.center-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-box {
  background: white;
  border: 3px solid black;
  border-radius: 112px;
  padding: 40px 50px;
  width: 35%;
  box-sizing: border-box;
  font-family: "Sniglet", system-ui;
  font-weight: 400;
  font-style: normal;
}

.site-footer {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  font-family: "Sniglet", system-ui;
  font-size: 0.95em;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.site-footer a {
  color: white;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-separator {
  opacity: 0.8;
}

.top-link-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.top-link-row a {
  color: black;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 800;
}

.top-link-row a:hover {
  text-decoration: underline;
}

.auth-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.95em;
}

.form-message {
  margin-top: 12px;
  text-align: center;
  font-size: 0.95em;
  min-height: 1.2em;
}

.form-message.success {
  color: #0c7b43;
}

.form-message.error {
  color: #9b1c1c;
}

.form-inline-link { text-align: right; margin-top: -4px; font-size: .86rem; }
.form-inline-link a, .download-link { color: #000; font-weight: 800; }
.download-link { display: inline-block; margin-top: 18px; padding: 12px 20px; border: 2px solid #000; border-radius: 999px; text-decoration: none; }
.download-link:hover { background: #000; color: #fff; }

.auth-links a {
  color: black;
  font-weight: 800;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  text-align: left;
}

.g-recaptcha {
  align-self: center;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 0.95em;
}

.field-group input,
.field-group select {
  width: 100%;
  border: 2px solid black;
  border-radius: 999px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1em;
  background: #fff;
  color: black;
}

.field-group input:focus,
.field-group select:focus {
  outline: none;
  background: #f6f6f6;
}

.form-button {
  margin-top: 6px;
  align-self: center;
  padding: 12px 28px;
  border: 2px solid black;
  border-radius: 999px;
  background: white;
  color: black;
  font-family: inherit;
  font-size: 1.05em;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease, font-size 120ms ease;
}

.form-button:hover {
  background: #7f7f7f;
  color: #ffffff;
  transform: scale(1.06);
  font-size: 1.12em;
}

.form-button:active {
  background: black;
  color: white;
  transform: scale(0.98);
}

.form-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

@media screen and (max-width: 1140px) {
  .center-box {
    width: 75%;
    border-radius: 32px;
  }
}

@media screen and (max-width: 430px) {
  .center-box {
    width: 90%;
    border-radius: 32px;
  }
}

span {
  display: block;
}

.sniglet-extrabold {
  font-family: "Sniglet", system-ui;
  font-weight: 800;
  font-style: normal;
}

nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

nav a {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid black;
  border-radius: 999px;
  background: white;
  color: black;
  text-decoration: none;
  font-family: "Sniglet", system-ui;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease, font-size 120ms ease;
}

nav a:hover {
  background: #7f7f7f;
  color: #ffffff;
  transform: scale(1.06);
  font-size: 1.08em;
}

nav a:active {
  background: black;
  color: white;
  transform: scale(0.98);
}

nav a:first-child {
  font-size: 1.2em;
  padding: 12px 28px;
}

.or-text {
  font-size: 0.95em;
  font-weight: 800;
}

.community-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.community-line svg {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 auto;
}

/* Account dashboard */
.account-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 110px;
  font-family: "Sniglet", system-ui;
}

.account-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  color: white;
  margin-bottom: 28px;
}

.back-link, .logout-link { color: white; text-decoration: none; font-weight: 800; }
.back-link:hover, .logout-link:hover { text-decoration: underline; }
.eyebrow { margin: 0 0 6px; font-size: .73rem; letter-spacing: .13em; font-weight: 800; opacity: .72; }
.account-header h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; }
.account-intro { margin: 12px 0 0; font-size: 1.05rem; opacity: .9; }
.account-header .back-link { display: block; margin-bottom: 26px; font-size: .9rem; }
.logout-link { border: 2px solid white; border-radius: 999px; padding: 9px 18px; white-space: nowrap; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-card { background: rgba(255,255,255,.97); border: 3px solid #000; border-radius: 28px; padding: 28px; box-shadow: 7px 7px 0 rgba(0,0,0,.28); }
.profile-card { min-height: 360px; }
.security-card { grid-row: span 2; }
.danger-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #9a2f2f2f; background: #fff8f8; }
.delete-form { display: flex; align-items: flex-end; gap: 10px; min-width: min(100%, 330px); }.delete-form .field-group { flex: 1; gap: 5px; }.delete-form input { width: 100%; border: 2px solid #a923234a; border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; }.delete-form .delete-button { height: 44px; }
.card-heading { display: flex; align-items: center; gap: 13px; }
.card-heading h2, .account-card h2 { margin: 0; font-size: 1.55rem; }
.card-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid #000; border-radius: 50%; font-size: 1.2rem; }
.avatar-badge { display: grid; place-items: center; width: 74px; height: 74px; margin: 28px 0 18px; border: 3px solid #000; border-radius: 23px; background: #f1c8ea; font-size: 2.1rem; font-weight: 800; }
.profile-list { margin: 0; }
.profile-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #d8d8d8; }
.profile-list dt { color: #666; }.profile-list dd { margin: 0; font-weight: 800; text-align: right; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: #18864b; }
.muted-note { margin: 18px 0 0; color: #777; font-size: .85rem; line-height: 1.45; }
.card-copy { margin: 10px 0 20px; color: #5e5e5e; line-height: 1.4; }
.account-form { display: flex; flex-direction: column; gap: 14px; }
.account-form .field-group { gap: 5px; }.account-form .field-group input { border-radius: 12px; padding: 11px 13px; }
.form-button-dark { width: 100%; margin-top: 8px; background: #000; color: #fff; }.form-button-dark:hover { background: #555; }
.delete-button { padding: 10px 16px; border: 2px solid #9b1c1c; border-radius: 999px; color: #9b1c1c; background: transparent; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }.delete-button:hover { background: #9b1c1c; color: white; }
.account-message { position: relative; z-index: 1; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: white; border: 2px solid currentColor; }

@media screen and (max-width: 720px) {
  .account-shell { width: min(100% - 28px, 540px); padding-top: 28px; }
  .account-header { align-items: flex-start; flex-direction: column; gap: 18px; }
  .account-header h1 { font-size: 2.4rem; }.account-grid { grid-template-columns: 1fr; }
  .security-card { grid-row: auto; }.danger-card { align-items: flex-start; flex-direction: column; }.delete-form { width: 100%; }
}
