* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(
      circle at top,
      #f8f0df 0%,
      #eee0c5 38%,
      #d6c09b 100%
    );
  color: #201a14;
}

a {
  color: inherit;
}

.membership-page {
  min-height: 100vh;
  padding: 28px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.membership-card {
  width: min(100%, 540px);
  padding: 34px 26px;
  background: rgba(255, 252, 245, 0.97);
  border: 1px solid rgba(145, 105, 43, 0.38);
  box-shadow:
    0 24px 70px rgba(46, 32, 18, 0.18),
    0 4px 16px rgba(46, 32, 18, 0.08);
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #604b30;
}

.back-link:hover {
  text-decoration: underline;
}

.club-mark {
  text-align: center;
  margin-bottom: 34px;
}

.club-name {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2c241c;
}

.club-rule {
  display: block;
  width: 86px;
  height: 1px;
  margin: 13px auto 9px;
  background: #aa7c35;
}

.members-only {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a652f;
}

.membership-header {
  margin-bottom: 28px;
  text-align: center;
}

.membership-header h1 {
  margin: 0 0 13px;
  font-weight: 500;
  font-size: clamp(2rem, 8vw, 2.75rem);
  color: #211a14;
}

.membership-header p {
  max-width: 430px;
  margin: 0 auto;
  line-height: 1.65;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  color: #655846;
}

.membership-form {
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #40362c;
}

.field-group input {
  width: 100%;
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid #c9b692;
  border-radius: 0;
  background: #fffdf8;
  color: #201a14;
  font-size: 1rem;
  outline: none;
}

.field-group input:focus {
  border-color: #936b2e;
  box-shadow: 0 0 0 2px rgba(147, 107, 46, 0.14);
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #5c5143;
}

.agreement input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #8d662e;
  flex: 0 0 auto;
}

.agreement a {
  color: #76541f;
}

.legal-agreement {
  margin-top: 20px;
  margin-bottom: 18px;
}

.legal-agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--psc-text, #211a14);
  font-size: 0.93rem;
  line-height: 1.45;
}

.legal-agreement-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--psc-gold-dark, #76541f);
}

.legal-agreement-row a {
  color: var(--psc-gold-dark, #76541f);
  font-weight: 700;
}

.legal-agreement-error {
  margin: 8px 0 0 28px;
  color: #8a2f28;
  font-size: 0.86rem;
  line-height: 1.4;
}

.form-message {
  display: none;
  margin: 0;
  padding: 10px 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
}

.form-message.error {
  display: block;
  background: #fff1ed;
  border: 1px solid #d8a59a;
  color: #7b3024;
}

.form-message.success {
  display: block;
  background: #f3efe4;
  border: 1px solid #c7b58e;
  color: #59451f;
}

.form-message.info {
  display: block;
}

.continue-button {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border: 1px solid #9e7435;
  background: #17130f;
  color: #e5c17f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.continue-button:hover {
  background: #282019;
}

.continue-button:focus-visible {
  outline: 3px solid #b88c49;
  outline-offset: 3px;
}

.signin-prompt {
  margin: 28px 0 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  color: #625746;
}

.signin-prompt a {
  font-weight: 700;
  color: #77551f;
}

@media (min-width: 600px) {
  .membership-card {
    padding: 46px 46px 42px;
  }
}
