/* Account forms share the site's forest, parchment and brass palette. */
.of-theme .of-auth-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  color: var(--of-ink);
}
.of-theme .of-auth-login { max-width: 480px; }
.of-auth-panel {
  overflow: hidden;
  border: 1px solid #bdab80;
  border-radius: 6px;
  background: #f7f2e6;
  box-shadow: 0 8px 28px #203c3414;
}
.of-auth-heading {
  padding: 28px 32px;
  border-bottom: 1px solid #b69c65;
  background: #244438;
  color: #f5e9ce;
}
.of-auth-eyebrow {
  font-family: var(--of-display);
  font-size: 11px;
  letter-spacing: .16em;
  color: #d4ba80;
}
.of-auth-heading h1 {
  margin: 10px 0 0;
  color: inherit;
  font-family: var(--of-serif);
  font-size: 25px;
  line-height: 1.5;
}
.of-auth-form { margin: 0; padding: 28px 32px; }
.of-auth-field { min-width: 0; margin-bottom: 22px; }
.of-auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #244438;
  font-size: 14px;
  font-weight: 700;
}
.of-auth-control { min-width: 0; color: #626653; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.of-auth-page input:not([type="hidden"]),
.of-auth-page select,
.of-auth-page textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1px solid #b9ad90;
  border-radius: 3px;
  background: #fffdf8;
  color: #203c34;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.of-auth-page textarea { resize: vertical; }
.of-auth-page input[type="file"] { padding: 8px; font-size: 13px; }
.of-auth-page input::file-selector-button {
  margin-right: 8px;
  padding: 6px 10px;
  border: 1px solid #bdab80;
  border-radius: 3px;
  background: #eee7d6;
  color: #244438;
  cursor: pointer;
}
.of-auth-control img { max-width: 100% !important; height: auto; margin: 8px 0; border-radius: 3px; }
.of-auth-control br { display: none; }
.of-auth-page :is(input, select, textarea):focus-visible,
.of-auth-page :is(button, a):focus-visible { outline: 2px solid #96743a; outline-offset: 3px; }
.of-auth-submit {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #a78f5d;
  border-radius: 3px;
  background: #244438;
  color: #f5ead0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.of-auth-submit:hover { background: #365c49; border-color: #c6ac75; }
.of-auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 18px 24px; border-top: 1px solid #d6c9ab; background: #eee7d6; }
.of-auth-links a { padding: 6px 0; color: #315d47; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.of-auth-message { margin: 24px 32px 0; padding: 14px 16px; border: 1px solid; border-radius: 3px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.of-auth-error { border-color: #c28b78; background: #f9e9df; color: #8b3425; }
.of-auth-success { border-color: #91a887; background: #e9efdf; color: #244438; }
.of-social-options { padding: 24px 32px 0; }
.of-social-options>p { margin: 0 0 16px; font-size: 13px; line-height: 1.7; }
.of-social-buttons { display: grid; gap: 12px; }
.of-social-buttons form { margin: 0; }
.of-social-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 4px; font: 500 14px/20px Arial,sans-serif; cursor: pointer; }
.of-social-button i { font-size: 22px; }
.of-social-button svg { flex-shrink: 0; }
.of-social-google { background: #fff; color: #1f1f1f; border-color: #747775; }
.of-social-line { background: #06c755; color: #fff; }
.of-social-x { background: #000; color: #fff; }
.of-social-discord { background: #5865f2; color: #fff; }
.of-social-button:hover { filter: brightness(.95); }
.of-social-options .of-social-note,.of-social-note { margin: 16px 0; color: #626653; font-size: 12px; line-height: 1.8; }
.of-social-divider { display: flex; align-items: center; gap: 12px; color: #84724e; font-size: 12px; }
.of-social-divider::before,.of-social-divider::after { content: ''; flex: 1; height: 1px; background: #d6c9ab; }
.of-social-connection { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid #d6c9ab; }
.of-social-connection>div { display: grid; gap: 6px; }
.of-social-connection span { color: #626653; font-size: 12px; }
.of-social-connection form { margin: 0; }
.of-social-connection button:disabled { opacity: .5; cursor: not-allowed; }
@media (min-width: 601px) {
  .of-auth-register .of-auth-field { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #ded3bc; }
  .of-auth-register .of-auth-field label { padding-top: 10px; }
}
@media (max-width: 600px) {
  .of-theme .of-auth-page { padding: 24px 16px 40px; }
  .of-auth-heading { padding: 22px 20px; }
  .of-auth-heading h1 { font-size: 22px; }
  .of-auth-form { padding: 24px 20px; }
  .of-auth-message { margin: 20px 20px 0; }
  .of-social-options { padding: 24px 20px 0; }
}
