/* Authentication pages: the site's parchment, forest ink and engraved gold. */
.hxh-auth { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1fr); max-width:1100px; margin:clamp(8px,2vw,28px) auto; border:1px solid #b99a68; background:#fffaf0; box-shadow:0 12px 30px #49351c12; color:#493a27; isolation:isolate; }
.hxh-auth *, .hxh-auth *::before, .hxh-auth *::after { box-sizing:border-box; }
.hxh-auth__welcome { position:relative; min-width:0; overflow:hidden; background:#183d31; display:flex; flex-direction:column; justify-content:flex-end; padding:clamp(24px,3vw,44px); }
.hxh-auth__landscape { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:55% 40%; }
.hxh-auth__welcome::before { content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,#13372b00 8%,#13372b30 32%,#13372bef 72%,#13372b 100%); }
.hxh-auth__welcome::after { content:''; position:absolute; inset:12px; z-index:2; border:1px solid #e0c58b85; pointer-events:none; }
.hxh-auth__welcome-copy { position:relative; z-index:2; padding-top:210px; }
.hxh-auth .hxh-auth__welcome h2 { color:#fff5da; font-size:clamp(26px,3vw,38px); line-height:1.25; margin:14px 0 18px; }
.hxh-auth .hxh-auth__welcome p { color:#f3ecd9; line-height:1.8; margin:0; font-size:16px; }
.hxh-auth__eyebrow { display:block; font-size:11px; letter-spacing:.13em; text-transform:uppercase; color:#796344; font-weight:bold; }
.hxh-auth__welcome .hxh-auth__eyebrow { color:#e7ce98; }
.hxh-auth__signature { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; border-top:1px solid #d5bd843d; padding-top:20px; font-size:12px; color:#e7ce98; }
.hxh-auth__panel { min-width:0; padding:clamp(24px,3vw,44px); background:linear-gradient(135deg,#fffdf7,#f8efd9); }
.hxh-auth__nav { display:flex; gap:28px; border-bottom:1px solid #d8c6a5; margin-bottom:30px; }
.hxh-auth__nav a { position:relative; display:block; padding:0 0 14px; color:#78664a; font-size:15px; text-decoration:none; }
.hxh-auth__nav a[aria-current] { color:#214b3b; font-weight:bold; }
.hxh-auth__nav a[aria-current]::after { content:''; position:absolute; height:3px; background:#27523f; bottom:-1px; left:0; right:0; }
.hxh-auth__heading { margin-bottom:26px; }
.hxh-auth .hxh-auth__heading h1 { margin:8px 0 12px; color:#214b3b; font-size:clamp(27px,3vw,36px); line-height:1.25; }
.hxh-auth__heading p { font-size:15px; line-height:1.65; margin:0; color:#796344; }
.hxh-auth__field { min-width:0; margin-bottom:20px; }
.hxh-auth__field label { display:block; font-size:14px; font-weight:bold; margin-bottom:8px; color:#493a27; }
.hxh-auth__field :is(input,select) { width:100%; min-width:0; min-height:48px; border:1px solid #c5ac83; border-radius:3px; background:#fffdf8; padding:11px 12px; color:#302c23; font:inherit; font-size:16px; box-shadow:inset 0 2px 3px #60411806; }
.hxh-auth :is(input,select,button,a):focus-visible { outline:2px solid #2c634b; outline-offset:3px; }
.hxh-auth__field [aria-invalid='true'] { border-color:#a34436; }
.hxh-auth__password { display:flex; border:1px solid #c5ac83; border-radius:3px; background:#fffdf8; }
.hxh-auth__password input { border:0; background:transparent; }
.hxh-auth__password button { flex-shrink:0; background:none; border:0; color:#27523f; font-size:12px; padding:0 12px; cursor:pointer; }
.hxh-auth__password button[hidden] { display:none; }
.hxh-auth__options { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:2px 0 24px; font-size:13px; }
.hxh-auth a:not(.hxh-button) { text-underline-offset:4px; }
.hxh-auth__options a,.hxh-auth__terms a,.hxh-auth__switch a { color:#27523f; }
.hxh-auth__check { display:flex; align-items:flex-start; gap:10px; font-size:14px; line-height:1.6; cursor:pointer; }
.hxh-auth__check input { flex:0 0 18px; width:18px; height:18px; margin:3px 0 0; accent-color:#27523f; }
.hxh-auth .hxh-auth__submit { width:100%; min-height:50px; display:flex; justify-content:space-between; padding-inline:20px; font-size:16px; }
.hxh-auth__switch { margin:24px 0 0; padding-top:20px; border-top:1px solid #d8c6a5; text-align:center; font-size:14px; line-height:1.8; }
.hxh-auth__switch a { font-weight:bold; white-space:nowrap; }
.hxh-auth__section { margin:0 0 24px; padding:0; min-width:0; border:0; }
.hxh-auth__section legend { float:none; width:100%; padding:0 0 10px; margin-bottom:18px; border-bottom:1px solid #d8c6a5; font:16px 'Cinzel',serif; color:#27523f; }
.hxh-auth__fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.hxh-auth--register { grid-template-columns:minmax(0,.7fr) minmax(0,1fr); max-width:1200px; }
.hxh-auth--register .hxh-auth__welcome-copy { padding-top:300px; }
.hxh-auth__character { display:grid; grid-template-columns:90px minmax(0,1fr); gap:20px; align-items:center; }
.hxh-auth__character .hxh-auth__field { margin-bottom:6px; }
.hxh-auth .hxh-character-avatar { display:block; width:80px; height:80px; object-fit:cover; border-radius:50%; border:2px solid #b99a68; box-shadow:0 3px 8px #49351c1c; margin:auto; }
.hxh-auth .character-name-display { font-size:12px; text-align:center; color:#27523f; margin-top:7px; overflow-wrap:anywhere; }
.hxh-auth .hxh-auth__hint,.hxh-auth .help-text { font-size:12px; color:#796344; line-height:1.6; margin:6px 0 0; }
.hxh-auth__terms { margin:0 0 20px; }
.hxh-auth__error,.hxh-auth__errors { color:#842c28; font-size:14px; line-height:1.6; }
.hxh-auth__error { border-left:3px solid #a34436; background:#f6e8df; padding:12px 16px; margin-bottom:20px; }
.hxh-auth__errors { padding-left:20px; margin:8px 0 0; }
@media (max-width:900px) { .hxh-auth,.hxh-auth--register { grid-template-columns:1fr; max-width:640px; } .hxh-auth__welcome { min-height:200px; padding:26px; } .hxh-auth .hxh-auth__welcome-copy { padding-top:0; max-width:380px; } .hxh-auth__welcome::before { background:linear-gradient(90deg,#13372bf0,#13372b9c 65%,#13372b20); } .hxh-auth .hxh-auth__welcome h2 { font-size:27px; margin:10px 0; } .hxh-auth__welcome p,.hxh-auth__signature { display:none; } .hxh-auth__landscape { object-position:center 55%; } }
@media (max-width:480px) { .hxh-auth { margin:8px 0; } .hxh-auth__panel { padding:24px 18px; } .hxh-auth__welcome { min-height:150px; padding:24px; } .hxh-auth__nav { margin-bottom:24px; } .hxh-auth__fields { grid-template-columns:1fr; gap:0; } .hxh-auth__character { grid-template-columns:64px minmax(0,1fr); gap:12px; } .hxh-auth .hxh-character-avatar { width:64px; height:64px; } .hxh-auth__check { font-size:13px; } }
