/* Member pages share the camp's type, artwork and purple palette. */
.auth-page { min-height: 100svh; background: var(--purple-900) url('../assets/img/bg-purple.webp') center top / cover fixed; }
.auth-page [hidden], .member-tools[hidden] { display: none !important; }
.auth-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1250px, calc(100% - 2 * var(--gutter))); height: var(--nav-h); margin: var(--nav-top) auto 0; padding: 0 clamp(18px, 3vw, 46px); border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 30px rgba(34, 8, 84, .22); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.auth-nav__start { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 20px); min-width: 0; }
.auth-nav__home { display: inline-flex; align-items: center; flex: none; gap: 8px; padding: 9px 15px; border: 1.5px solid rgba(255, 215, 106, .68); border-radius: 999px; background: rgba(255, 215, 106, .12); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .2s, border-color .2s, background-color .2s; }
.auth-nav__home > span:first-child { color: var(--gold); font-size: 1.1rem; line-height: 1; }
.auth-nav__home:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(255, 215, 106, .22); }
.auth-nav__home:focus-visible { outline-color: var(--gold); }
.auth-brand { flex: none; width: clamp(112px, 11.4vw, 172px); filter: drop-shadow(0 3px 6px rgba(30, 5, 70, .35)); transition: transform .25s; }
.auth-brand:hover { transform: rotate(-3deg) scale(1.04); }
.auth-nav > a:last-child, .auth-nav button { padding: 9px 20px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); font-size: .9rem; text-decoration: none; font-weight: 600; transition: transform .25s cubic-bezier(.3, 1.6, .6, 1), border-color .2s, box-shadow .2s; }
.auth-nav > a:last-child:hover, .auth-nav button:hover { transform: translateY(-2px); border-color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 22px rgba(190, 120, 255, .5); }
.auth-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(28px, 5vw, 80px); width: min(1180px, calc(100% - 2 * var(--gutter))); margin: 64px auto 72px; }
.auth-intro { position: sticky; top: 36px; }
.auth-eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-shadow: 0 1px 8px rgba(52, 16, 110, .45); }
.auth-intro h1 { margin: 22px 0; font-size: clamp(2.6rem, 4.1vw, 4.3rem); font-weight: 800; line-height: 1.35; letter-spacing: -.035em; text-shadow: 0 0 .12em rgba(255, 255, 255, .5), 0 0 .55em rgba(255, 138, 226, .6), 0 4px 22px rgba(52, 16, 110, .45); }
.auth-intro h1 span { color: var(--gold); text-shadow: 0 0 .5em rgba(255, 215, 106, .55), 0 4px 22px rgba(52, 16, 110, .45); }
.auth-intro > p:not(.auth-eyebrow) { max-width: 350px; color: var(--lilac-200); text-shadow: 0 1px 8px rgba(52, 16, 110, .5); }
.auth-mascot { width: 160px; margin: 24px 0; rotate: -8deg; filter: drop-shadow(0 18px 22px #19063a66); }
.auth-outline { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid #ffffff40; }
.auth-outline a { display: flex; gap: 16px; align-items: center; color: #f4e9ff; font-size: .9rem; text-decoration: none; }
.auth-outline a:hover { color: var(--gold); }
.auth-outline span { font-family: var(--font-display); font-size: .65rem; color: var(--gold); }
.auth-intro .auth-footnote { margin-top: 28px; font-size: .75rem; }
.auth-card { min-width: 0; padding: clamp(24px, 3.2vw, 44px); border-radius: 28px; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(circle at 6% 94%, rgba(125, 87, 176, .1) 0 18px, transparent 19px), radial-gradient(circle at 95% 8%, rgba(125, 87, 176, .08) 0 12px, transparent 13px), radial-gradient(circle at 90% 96%, rgba(125, 87, 176, .06) 0 26px, transparent 27px); box-shadow: 0 16px 34px rgba(44, 14, 98, .3), inset 0 -7px 0 rgba(125, 87, 176, .13); }
.auth-card__head { padding-bottom: 28px; }
.auth-card__head .auth-eyebrow { color: var(--purple-500); text-shadow: none; }
.auth-card__head h2 { margin: 10px 0 6px; font-size: 2rem; font-weight: 800; color: var(--ink); }
.auth-card__head > p:last-child, .form-field small, .form-section__hint, .form-submit p { color: #6d5e7d; font-size: .8rem; }
.auth-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.auth-card fieldset.form-section { padding: 28px 0 32px; border-top: 1px solid #e1d6eb; scroll-margin-top: 24px; }
.form-section legend { float: left; display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 22px; color: var(--ink); font-size: 1rem; font-weight: 700; }
.form-section legend span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #7a45cf, #b04bf0 62%, #e06be0); color: #fff; box-shadow: 0 4px 10px rgba(122, 69, 207, .35); font-family: var(--font-display); font-size: .6rem; }
.form-grid { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.form-field { display: flex; flex-wrap: wrap; align-content: start; align-items: baseline; gap: 7px 4px; min-width: 0; color: var(--ink); font-size: .85rem; font-weight: 600; }
.form-field--wide { grid-column: 1 / -1; }
.required-mark { color: #a02d57; }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1.5px solid #d9cde6; border-radius: 14px; background: #fff; color: #29124e; font: 400 1rem/1.5 var(--font-body); transition: border-color .2s, box-shadow .2s; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--purple-300); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 0; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(155, 88, 234, .22); }
.form-field select { padding-right: 28px; }
.form-field textarea { resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8c7f99; font-size: .85rem; }
.form-field input[readonly] { background: #f1ebf8; color: #6d5e7d; }
.auth-card :focus-visible { outline-color: var(--purple-500); }
.form-field [aria-invalid='true'] { border-color: #b2284f; background: #fff7f9; }
.form-field .field-error { width: 100%; color: #a02145; font-size: .75rem; font-weight: 400; }
.form-check { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .8rem; cursor: pointer; }
.form-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--purple-500); }
.auth-forgot { margin-top: 12px; text-align: right; font-size: .8rem; }
.auth-forgot a { color: var(--purple-600); font-weight: 600; text-underline-offset: 3px; }
.form-section__hint { clear: both; margin: 24px 0 20px; }
.form-submit { padding-top: 24px; border-top: 1px solid #e1d6eb; }
.auth-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 10px 14px 10px 28px; border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 20px; background: linear-gradient(135deg, #7a45cf, #b04bf0 62%, #e06be0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px rgba(122, 69, 207, .5); color: #fff; font: 700 1rem/1.2 var(--font-body); text-align: center; text-decoration: none; cursor: pointer; transition: transform .25s cubic-bezier(.3, 1.6, .6, 1), box-shadow .2s; }
.auth-button > span[aria-hidden] { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1rem; transition: rotate .25s cubic-bezier(.3, 1.6, .6, 1); }
.auth-button:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 34px rgba(176, 75, 240, .65); }
.auth-button:hover > span[aria-hidden] { rotate: -10deg; }
.auth-button:active { transform: translateY(0) scale(.98); }
.auth-button:disabled { opacity: .6; cursor: wait; }
.form-submit .auth-button, #login-form > .auth-button, .auth-form > .auth-button { width: 100%; margin-top: 22px; }
.auth-button--secondary { padding: 10px 24px; border-color: var(--purple-500); background: transparent; box-shadow: none; color: var(--ink); }
.auth-button--secondary:hover { background: #7a45cf14; box-shadow: none; }
.auth-switch { margin-top: 24px; color: #6d5e7d; font-size: .85rem; text-align: center; }
.auth-switch a { color: var(--purple-600); font-weight: 700; text-underline-offset: 4px; }
.auth-message { padding: 14px 16px; margin-bottom: 24px; border: 1px solid #e5a9b9; border-radius: 12px; background: #fff0f4; color: #8a1538; font-size: .85rem; }
.auth-success { padding: 16px; border: 1px solid #a3d9bd; border-radius: 12px; background: #effaf4; color: #205c3b; font-size: .9rem; }
.auth-success p + p { margin-top: 10px; }
.auth-loading { margin-bottom: 24px; color: #6d5e7d; font-size: .85rem; }
.auth-footer { padding: 0 24px 28px; color: var(--lilac-200); text-shadow: 0 1px 8px rgba(52, 16, 110, .5); font-size: .7rem; letter-spacing: .06em; text-align: center; }
.auth-layout--login { align-items: center; min-height: calc(100svh - 240px); margin-block: 44px; }
.auth-layout--login .auth-intro { position: static; }
.account-layout { width: min(1100px, calc(100% - 2 * var(--gutter))); min-height: calc(100svh - 220px); margin: 54px auto 72px; }
.account-notice { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; margin-bottom: 24px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 20px rgba(34, 8, 84, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.account-notice p { margin-top: 6px; font-size: .85rem; color: var(--lilac-200); }
.account-notice .auth-button { flex: none; }
.member-tools { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 16px; width: min(100%, 900px); margin-bottom: 36px; text-align: center; }
.member-tools p { flex-basis: 100%; }
.member-tools a, .member-tools button { padding: 8px 18px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); font-size: .9rem; text-decoration: none; }
.member-tools .auth-message { flex-basis: 100%; margin: 0; }
.member-tools [hidden], #status-steps[hidden] { display: none !important; }
/* ───────── Photo field on the registration form ───────── */
.photo-field { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; padding: 18px; border: 1.5px dashed #cdb9e6; border-radius: 20px; background: #f6f0fb; }
.photo-field__preview { display: grid; place-items: center; flex: none; width: 104px; aspect-ratio: 1; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #e6daf4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a45cf' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.6'/%3E%3Cpath d='M4.5 20c.6-3.8 3.7-6 7.5-6s6.9 2.2 7.5 6'/%3E%3C/svg%3E") center / 56% no-repeat; box-shadow: 0 6px 16px rgba(122, 69, 207, .28); }
.photo-field__preview.has-photo { background-image: none; }
.photo-field__preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-field__body { min-width: 0; }
.photo-field__title { color: var(--ink); font-weight: 700; }
.photo-field__title small, .photo-field__hint { color: #6d5e7d; font-size: .8rem; font-weight: 400; }
.photo-field__hint { margin: 2px 0 12px; }
.photo-field__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.photo-button, .edit-button { display: inline-flex; align-items: center; position: relative; min-height: 40px; padding: 8px 18px; border: 1.5px solid var(--purple-500); border-radius: 999px; background: #fff; color: var(--purple-600); font: 700 .85rem/1.2 var(--font-body); cursor: pointer; transition: background-color .2s, transform .25s cubic-bezier(.3, 1.6, .6, 1); }
.photo-button:hover, .edit-button:hover { background: #f1e8fb; transform: translateY(-1px); }
.photo-button:focus-within, .edit-button:focus-visible { outline: 3px solid rgba(155, 88, 234, .45); outline-offset: 2px; }
.photo-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-remove, .link-button { padding: 4px 6px; border: 0; background: none; color: #a02145; font: 600 .8rem/1.2 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.photo-field__error { margin-top: 8px; color: #a02145; font-size: .8rem; }

/* ───────── Account / profile page ───────── */
.profile-hero { position: relative; display: flex; align-items: center; gap: clamp(20px, 3.5vw, 44px); padding: clamp(22px, 3.4vw, 40px); margin-bottom: 24px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 32px; background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 34px rgba(34, 8, 84, .3); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.profile-hero__photo { position: relative; flex: none; }
.avatar--xl { --size: clamp(112px, 15vw, 168px); border-width: 4px; border-color: var(--gold); box-shadow: 0 0 0 6px rgba(255, 215, 106, .22), 0 14px 30px rgba(30, 5, 70, .45); }
.profile-hero__camera { position: absolute; right: 2px; bottom: 6px; display: grid; place-items: center; width: 44px; height: 44px; border: 2.5px solid #fff; border-radius: 50%; background: linear-gradient(135deg, #7a45cf, #e06be0); color: #fff; box-shadow: 0 6px 14px rgba(30, 5, 70, .4); cursor: pointer; transition: transform .25s cubic-bezier(.3, 1.6, .6, 1); }
.profile-hero__camera:hover { transform: scale(1.1) rotate(-6deg); }
.profile-hero__camera:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
.profile-hero__camera input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.profile-hero__body { min-width: 0; }
.profile-hero__hello { color: var(--gold); font-size: .95rem; font-weight: 600; text-shadow: 0 1px 8px rgba(52, 16, 110, .5); }
.profile-hero h1 { margin: 4px 0 2px; font-size: clamp(1.7rem, 3.8vw, 2.8rem); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; text-shadow: 0 0 .5em rgba(255, 138, 226, .5), 0 3px 18px rgba(52, 16, 110, .45); }
.profile-hero__en { color: var(--lilac-200); font-size: clamp(.9rem, 1.5vw, 1.05rem); overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; padding: 0; list-style: none; }
.chips li { padding: 5px 14px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .82rem; font-weight: 600; }
.profile-hero__email { color: var(--lilac-200); font-size: .85rem; overflow-wrap: anywhere; }
.profile-hero .link-button { margin-left: 8px; color: #ffd0dc; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.profile-card { padding: clamp(22px, 2.6vw, 32px); }
.profile-card__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid #e8dff1; }
.profile-card__head h2 { flex: 1; margin: 0; min-width: 0; color: var(--ink); font-size: 1.15rem; font-weight: 700; }
.profile-card__badge { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #7a45cf, #b04bf0 62%, #e06be0); color: #fff; box-shadow: 0 4px 10px rgba(122, 69, 207, .35); font-family: var(--font-display); font-size: .62rem; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0; }
.info { min-width: 0; }
.info--wide { grid-column: 1 / -1; }
.info dt { margin-bottom: 3px; color: #7b6a8c; font-size: .75rem; font-weight: 500; }
.info dd { margin: 0; color: #2c1654; font-size: 1.02rem; font-weight: 600; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.info dd a { color: var(--purple-600); text-decoration-color: rgba(91, 43, 181, .35); text-underline-offset: 4px; }
.info__empty { color: #9a8cab; font-weight: 400; }
.pill { display: inline-block; max-width: 100%; padding: 4px 12px; border-radius: 12px; font-size: .9rem; font-weight: 600; line-height: 1.45; }
.pill--none { background: #e7f6ee; color: #1d6a45; }
.pill--none::before { content: '✓ '; }
.pill--note { background: #fff1d6; color: #7a4a00; }
.profile-card__form .form-grid { margin-bottom: 4px; }
.profile-card__form .auth-message { margin-bottom: 16px; }
.profile-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.profile-card__actions .auth-button { min-height: 50px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; padding: 12px 22px; border-radius: 999px; background: #2a0f63; color: #fff; box-shadow: 0 10px 30px rgba(20, 4, 60, .5); font-size: .9rem; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 850px) {
  .auth-layout { grid-template-columns: 1fr; max-width: 640px; gap: 28px; margin-top: 36px; }
  .auth-intro { position: relative; top: auto; padding-right: 100px; }
  .auth-intro h1 { margin: 12px 0; font-size: 2.3rem; }
  .auth-intro h1 br { display: none; }
  .auth-mascot { position: absolute; top: 34px; right: -4px; width: 100px; margin: 0; }
  .auth-outline { display: none; }
  .auth-intro .auth-footnote { margin-top: 14px; }
  .auth-intro > p:not(.auth-eyebrow) { font-size: .85rem; }
  .auth-layout--login { min-height: auto; margin-bottom: 60px; }
  .auth-layout--login .auth-intro { position: relative; }
  .account-notice { align-items: stretch; flex-direction: column; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .auth-nav { padding: 0 12px 0 14px; gap: 8px; }
  .auth-nav__start { gap: 6px; }
  .auth-nav__home { gap: 5px; padding: 7px 9px; font-size: .7rem; }
  .auth-brand { width: 104px; }
  .auth-nav > a:last-child, .auth-nav button { padding: 7px 12px; font-size: .75rem; }
  .auth-intro h1 { font-size: 1.9rem; }
  .auth-eyebrow { font-size: .6rem; }
  .auth-card { padding: 24px 20px; border-radius: 22px; }
  .profile-hero { flex-direction: column; align-items: flex-start; border-radius: 26px; }
  .photo-field { flex-direction: column; align-items: flex-start; }
  .info-list { grid-template-columns: 1fr; }
  .profile-card { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field { font-size: .85rem; }
}
@media (max-width: 380px) {
  .auth-nav__home-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .auth-nav__home { width: 36px; height: 36px; justify-content: center; padding: 0; }
}
/* A decoy for automated form fillers; excluded from keyboard and assistive navigation. */
.registration-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.registration-verification { margin-block: 1.5rem; }
#registration-widget { max-width: 100%; min-height: 65px; }
