@font-face{
  font-family:"GH Alagard";
  src:url("fonts/alagard.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"GH Atkinson";
  src:url("fonts/atkinson.woff2") format("woff2");
  font-weight:200 800;
  font-style:normal;
  font-display:swap;
}

:root{
  --hh-ink:#12152b;
  --hh-ink2:#1b2040;
  --hh-parch:#eee3cb;
  --hh-gold:#c8a45c;
  --hh-gold-hi:#e0c47e;
  --hh-gold-lo:#8a6f2e;
  --hh-head:"GH Alagard",Georgia,"Times New Roman",serif;
  --hh-ui:"GH Atkinson","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --hh-nav:64px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  background:#0b0e22;
}

html::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(ellipse 80% 90% at 50% 55%,rgba(8,6,20,0) 20%,rgba(8,6,20,.8) 100%),
    linear-gradient(rgba(14,10,32,.28),rgba(14,10,32,.28)),
    url("images/hollows_wall.webp") 0 0 / 64px 64px;
  image-rendering:pixelated;
}

html::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(8,6,20,0) 70%,rgba(8,6,20,.55) 100%),
    url("images/dark_academia_school.webp") no-repeat 50% 100% / auto min(100vh,1050px),
    radial-gradient(ellipse 55% 50% at 50% 80%,rgba(232,150,92,.28) 0%,rgba(150,84,120,.12) 45%,rgba(0,0,0,0) 75%);
  image-rendering:pixelated;
}

body.login-page{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  min-height:100vh;
  margin:0;
  padding:calc(var(--hh-nav) + 40px) 20px 40px;
  font-family:var(--hh-ui);
  color:var(--hh-parch);
  background:transparent;
}

.gh-nav{
  position:fixed;
  top:0;
  left:0;
  z-index:999;
  display:flex;
  align-items:stretch;
  width:100%;
  height:var(--hh-nav);
  padding-left:28px;
  background:rgba(18,21,43,.94);
  border-bottom:1px solid rgba(200,164,92,.28);
  box-shadow:0 10px 28px rgba(0,0,0,.55);
}

.gh-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-right:36px;
  font-family:var(--hh-head);
  font-size:1.5rem;
  font-weight:400;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
  color:var(--hh-parch);
}

.gh-brand::before{
  content:"";
  flex:0 0 auto;
  width:30px;
  height:30px;
  background:url("../favicon.ico") center / contain no-repeat;
  image-rendering:pixelated;
}

.gh-links{
  display:flex;
  align-items:stretch;
}

.gh-links a{
  position:relative;
  display:flex;
  align-items:center;
  padding:0 20px;
  font-size:.88rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  color:rgba(238,227,203,.78);
  transition:color .15s;
}

.gh-links a:hover,
.gh-links a:focus-visible{
  color:#fff;
}

.gh-links a:focus-visible,
.gh-cta:focus-visible,
.gh-brand:focus-visible{
  outline:2px solid var(--hh-gold-hi);
  outline-offset:-5px;
}

.gh-links a.is-active{
  color:var(--hh-gold-hi);
}

.gh-links a.is-active::before{
  content:"";
  position:absolute;
  top:0;
  left:20px;
  right:20px;
  height:3px;
  background:var(--hh-gold);
}

.gh-note{
  margin-left:auto;
  align-self:center;
  padding-right:28px;
  font-size:.8rem;
  letter-spacing:.04em;
  color:rgba(238,227,203,.68);
}

.gh-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:190px;
  padding:0 28px;
  font-size:.9rem;
  font-weight:700;
  letter-spacing:.24em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--hh-ink);
  background:var(--hh-gold);
  transition:background .15s;
}

.gh-cta:hover,
.gh-cta:focus-visible{
  background:var(--hh-gold-hi);
}

body.login-page .auth-container{
  position:relative;
  display:flex;
  flex-flow:row wrap;
  justify-content:center;
  align-content:flex-start;
  width:100%;
  max-width:440px;
  margin:auto;
  padding:44px 40px 36px;
  gap:18px 22px;
  background:rgba(18,21,43,.92);
  border:1px solid rgba(200,164,92,.35);
  border-radius:4px;
  box-shadow:0 0 0 1px rgba(8,6,20,.9),0 30px 70px rgba(0,0,0,.7),0 6px 0 rgba(8,6,20,.6);
}

body.login-page .auth-container>*{
  flex:0 0 100%;
  min-width:0;
  margin:0;
}

body.login-page .auth-container>.switch-link{
  flex:0 0 auto;
}

body.login-page .auth-container form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

body.login-page .auth-container h1{
  font-family:var(--hh-head);
  font-size:2rem;
  font-weight:400;
  line-height:1.25;
  text-align:center;
  text-transform:uppercase;
  text-wrap:balance;
  letter-spacing:.04em;
  color:var(--hh-parch);
}

body.login-page .auth-container h1::after{
  content:none;
}

body.login-page .auth-container .subtitle{
  font-size:.95rem;
  font-weight:400;
  line-height:1.5;
  text-align:center;
  color:rgba(238,227,203,.78);
}

body.login-page .auth-container>.subtitle:first-of-type{
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--hh-gold-hi);
}

body.login-page .auth-container .subtitle[style]{
  font-size:.85rem !important;
  color:rgba(238,227,203,.7);
}

body.login-page .auth-container input[type="email"],
body.login-page .auth-container input[type="password"],
body.login-page .auth-container input[type="text"]{
  display:block;
  width:100%;
  height:48px;
  padding:0 16px;
  font-family:var(--hh-ui);
  font-size:.98rem;
  color:var(--hh-parch);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(238,227,203,.22);
  border-radius:3px;
  transition:border-color .15s,background .15s,box-shadow .15s;
}

body.login-page .auth-container input[type="email"]:hover,
body.login-page .auth-container input[type="password"]:hover,
body.login-page .auth-container input[type="text"]:hover{
  border-color:rgba(238,227,203,.45);
}

body.login-page .auth-container input[type="email"]:focus,
body.login-page .auth-container input[type="password"]:focus,
body.login-page .auth-container input[type="text"]:focus{
  background:rgba(255,255,255,.09);
  border-color:var(--hh-gold);
  box-shadow:inset 0 -2px 0 var(--hh-gold);
  outline:none;
}

body.login-page .auth-container input::placeholder{
  color:rgba(238,227,203,.62);
}

body.login-page .auth-container input:-webkit-autofill{
  -webkit-box-shadow:0 0 0 50px #1b2040 inset;
  -webkit-text-fill-color:var(--hh-parch);
}

body.login-page .auth-container .password-wrapper{
  position:relative;
  display:flex;
  align-items:center;
}

body.login-page .auth-container .password-wrapper input{
  flex:1;
  padding-right:48px;
}

body.login-page .auth-container .toggle-password{
  position:absolute;
  right:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:24px !important;
  height:24px;
  padding:0 !important;
  background:none !important;
  border:0 !important;
  cursor:pointer;
  color:rgba(238,227,203,.6) !important;
  transition:color .15s;
}

body.login-page .auth-container .toggle-password:hover{
  color:var(--hh-gold-hi) !important;
}

body.login-page #student-code,
body.login-page #reset-code,
body.login-page #reset-email{
  font-size:1.1rem;
}

body.login-page .gender-select{
  justify-content:center;
  gap:12px;
}

body.login-page .gender-radio{
  margin:0;
  padding:9px 22px;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--hh-parch);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(238,227,203,.28);
  border-radius:3px;
  cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}

body.login-page .gender-radio:hover{
  border-color:var(--hh-gold);
}

body.login-page .gender-radio:has(input:checked){
  color:var(--hh-ink);
  background:var(--hh-gold);
  border-color:var(--hh-gold);
}

body.login-page .gender-radio input[type="radio"]{
  accent-color:var(--hh-ink);
}

body.login-page #turnstile-widget{
  display:flex;
  justify-content:center;
}

body.login-page .auth-container button:not(.toggle-password){
  display:block;
  align-self:stretch;
  width:100% !important;
  min-width:0 !important;
  height:48px;
  margin:0 !important;
  padding:0 24px !important;
  font-family:var(--hh-ui);
  font-size:.86rem;
  font-weight:700;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--hh-ink);
  background:var(--hh-gold);
  border:0;
  border-radius:3px;
  box-shadow:0 4px 0 var(--hh-gold-lo);
  cursor:pointer;
  transition:transform .12s,box-shadow .12s,background .12s;
}

body.login-page .auth-container button:not(.toggle-password):hover:not(:disabled){
  background:var(--hh-gold-hi);
  transform:translateY(-2px);
  box-shadow:0 6px 0 var(--hh-gold-lo);
}

body.login-page .auth-container button:not(.toggle-password):active:not(:disabled){
  transform:translateY(3px);
  box-shadow:0 1px 0 var(--hh-gold-lo);
}

body.login-page .auth-container button:not(.toggle-password):focus-visible{
  outline:2px solid var(--hh-parch);
  outline-offset:3px;
}

body.login-page .auth-container button:not(.toggle-password):disabled{
  cursor:not-allowed;
  color:rgba(238,227,203,.45);
  background:#2a2f4d;
  box-shadow:none;
}

body.login-page .auth-container #resend-btn,
body.login-page .auth-container #resend-btn:disabled{
  color:var(--hh-gold-hi);
  background:transparent;
  box-shadow:inset 0 0 0 1px var(--hh-gold);
}

body.login-page .auth-container #resend-btn:hover:not(:disabled){
  background:rgba(200,164,92,.16);
  box-shadow:inset 0 0 0 1px var(--hh-gold-hi);
}

body.login-page .auth-container #resend-btn:disabled{
  color:rgba(238,227,203,.62);
  box-shadow:inset 0 0 0 1px rgba(238,227,203,.2);
}

body.login-page #student-verify-form div[style*="display:flex"] button,
body.login-page #reset-code-section div[style*="display:flex"] button{
  padding:0 12px !important;
}

body.login-page .auth-container .switch-link{
  padding:4px 0;
  font-size:.84rem;
  letter-spacing:.08em;
  text-align:center;
  text-transform:uppercase;
  text-decoration:none;
  color:rgba(238,227,203,.8);
  border-bottom:1px solid transparent;
  transition:color .15s,border-color .15s;
}

body.login-page .auth-container .switch-link:hover,
body.login-page .auth-container .switch-link:focus-visible{
  color:var(--hh-gold-hi);
  border-bottom-color:var(--hh-gold);
}

body.login-page .auth-container .switch-link:focus-visible{
  outline:2px solid var(--hh-gold-hi);
  outline-offset:3px;
}

body.login-page #forgot-password-section{
  padding:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(238,227,203,.16);
  border-radius:3px;
}

body.login-page #status-message,
body.login-page #verify-status,
body.login-page #forgot-status,
body.login-page #reset-status,
body.login-page #reset-error,
body.login-page #reset-code-status{
  min-height:0 !important;
  padding:10px 14px;
  font-family:var(--hh-ui);
  font-size:.95rem !important;
  line-height:1.45;
  text-align:left !important;
  color:var(--hh-parch) !important;
  background:rgba(238,227,203,.07);
  border-left:3px solid var(--hh-gold);
  border-radius:2px;
}

body.login-page #status-message:empty,
body.login-page #verify-status:empty,
body.login-page #forgot-status:empty,
body.login-page #reset-status:empty,
body.login-page #reset-error:empty,
body.login-page #reset-code-status:empty{
  display:none;
}

body.login-page :is(#status-message,#verify-status,#forgot-status,#reset-status,#reset-error,#reset-code-status)[data-tone="ok"]::before{
  content:"";
  display:inline-block;
  width:6px;
  height:11px;
  margin:0 12px 1px 3px;
  border-right:3px solid #6faa62;
  border-bottom:3px solid #6faa62;
  transform:rotate(45deg);
}

body.login-page :is(#status-message,#verify-status,#forgot-status,#reset-status,#reset-error,#reset-code-status)[data-tone="bad"]::before{
  content:"\00d7";
  display:inline-block;
  margin-right:10px;
  font-size:1.2rem;
  font-weight:700;
  line-height:1;
  vertical-align:-2px;
  color:#e07a88;
}

body.login-page :is(#status-message,#verify-status,#forgot-status,#reset-status,#reset-error,#reset-code-status)[data-tone="ok"]{
  color:#cfe8c6 !important;
  background:rgba(111,170,98,.14);
  border-left-color:#6faa62;
}

body.login-page :is(#status-message,#verify-status,#forgot-status,#reset-status,#reset-error,#reset-code-status)[data-tone="bad"]{
  color:#f3c8ce !important;
  background:rgba(201,84,99,.15);
  border-left-color:#c95463;
}

body.login-page .admin-door{
  position:fixed;
  right:18px;
  bottom:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  color:var(--hh-parch);
  opacity:.45;
  transition:opacity .15s,color .15s;
}

body.login-page .admin-door:hover,
body.login-page .admin-door:focus-visible{
  color:var(--hh-gold-hi);
  opacity:1;
}

body.login-page .admin-door:focus-visible{
  outline:2px solid var(--hh-gold-hi);
  outline-offset:2px;
}

@media (max-width:1100px){
  .gh-note{
    display:none;
  }
  .gh-nav{
    padding-left:16px;
  }
  .gh-brand{
    margin-right:12px;
    font-size:1.25rem;
  }
  .gh-links a{
    padding:0 12px;
  }
  .gh-links a.is-active::before{
    left:12px;
    right:12px;
  }
  .gh-cta{
    min-width:130px;
    padding:0 18px;
  }
}

@media (max-width:760px){
  .gh-links{
    display:none;
  }
  body.login-page .auth-container{
    padding:36px 22px 30px;
  }
}

@media (prefers-reduced-motion:reduce){
  body.login-page .auth-container button:not(.toggle-password){
    transition:none;
  }
}

body.login-page .gh-doc{
  width:100%;
  max-width:860px;
  margin:0 auto;
  padding:40px 44px 44px;
  background:rgba(18,21,43,.92);
  border:1px solid rgba(200,164,92,.35);
  border-radius:4px;
  box-shadow:0 0 0 1px rgba(8,6,20,.9),0 30px 70px rgba(0,0,0,.7),0 6px 0 rgba(8,6,20,.6);
  color:var(--hh-parch);
  line-height:1.65;
}

body.login-page .gh-doc h1{
  margin:0 0 6px;
  font-family:var(--hh-head);
  font-size:2rem;
  font-weight:400;
  letter-spacing:.04em;
  text-transform:uppercase;
  text-wrap:balance;
}

body.login-page .gh-doc h2{
  margin:28px 0 8px;
  font-family:var(--hh-head);
  font-size:1.2rem;
  font-weight:400;
  letter-spacing:.05em;
  color:var(--hh-gold-hi);
}

body.login-page .gh-doc p,
body.login-page .gh-doc li,
body.login-page .gh-doc dd{
  font-size:.95rem;
  color:rgba(238,227,203,.86);
}

body.login-page .gh-doc ul{
  margin:8px 0;
  padding-left:22px;
}

body.login-page .gh-doc li{
  margin:5px 0;
}

body.login-page .gh-doc a:not(.gh-btn){
  color:var(--hh-gold-hi);
  text-underline-offset:3px;
}

body.login-page .gh-doc-meta{
  margin:0 0 4px;
  color:rgba(238,227,203,.7);
}

body.login-page .gh-doc-draft{
  display:inline-block;
  margin:6px 0 0;
  padding:6px 12px;
  font-size:.82rem !important;
  color:var(--hh-gold-hi) !important;
  border:1px solid rgba(200,164,92,.4);
  border-radius:2px;
}

body.login-page .gh-doc-sub{
  margin:2px 0 10px;
  font-size:.88rem !important;
  color:rgba(238,227,203,.7) !important;
}

body.login-page .gh-mail-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:8px;
}

body.login-page .gh-mail-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px 16px;
  padding:10px 14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(238,227,203,.16);
  border-radius:3px;
}

body.login-page .gh-mail-addr{
  min-width:0;
  font-size:.95rem;
  overflow-wrap:anywhere;
}

body.login-page .gh-mail-actions{
  display:flex;
  flex:0 0 auto;
  gap:8px;
}

body.login-page .gh-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  min-height:44px;
  padding:0 16px;
  font-family:var(--hh-ui);
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--hh-ink);
  background:var(--hh-gold);
  border-radius:3px;
  box-shadow:0 3px 0 var(--hh-gold-lo);
  transition:background .12s,transform .12s;
}

body.login-page .gh-btn:hover,
body.login-page .gh-btn:focus-visible{
  background:var(--hh-gold-hi);
  transform:translateY(-1px);
}

body.login-page .gh-btn-alt{
  color:var(--hh-gold-hi);
  background:transparent;
  box-shadow:inset 0 0 0 1px var(--hh-gold);
}

body.login-page .gh-btn-alt:hover,
body.login-page .gh-btn-alt:focus-visible{
  background:rgba(200,164,92,.16);
}

body.login-page .gh-faq dt{
  margin-top:14px;
  font-weight:700;
  color:var(--hh-parch);
}

body.login-page .gh-faq dd{
  margin:2px 0 0;
}

body.login-page .auth-container .subtitle a{
  color:var(--hh-gold-hi);
}

body.login-page .auth-container .gh-mobile-note{
  padding:10px 14px;
  background:rgba(238,227,203,.07);
  border-left:3px solid var(--hh-gold);
  text-align:left;
}

.gh-links a{
  white-space:nowrap;
}

@media (max-width:1400px){
  .gh-note{
    display:none;
  }
}

body.login-page{
  overflow-x:hidden;
}

body.login-page .auth-container input,
body.login-page .auth-container button{
  max-width:100%;
}

@media (max-width:900px){
  :root{
    --hh-nav:100px;
  }
  .gh-nav{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:52px 48px;
    padding-left:14px;
  }
  .gh-brand{
    grid-column:1;
    grid-row:1;
    min-width:0;
    margin-right:8px;
    overflow:hidden;
    font-size:1.05rem;
    text-overflow:ellipsis;
  }
  .gh-cta{
    grid-column:2;
    grid-row:1;
    min-width:104px;
    padding:0 16px;
    font-size:.8rem;
    letter-spacing:.16em;
  }
  .gh-links{
    display:flex;
    grid-column:1 / -1;
    grid-row:2;
    overflow-x:auto;
    border-top:1px solid rgba(200,164,92,.2);
    scrollbar-width:none;
  }
  .gh-links::-webkit-scrollbar{
    display:none;
  }
  .gh-links a{
    flex:0 0 auto;
    min-height:44px;
    padding:0 14px;
    white-space:nowrap;
  }
  .gh-links a.is-active::before{
    left:14px;
    right:14px;
  }
  body.login-page .auth-container .switch-link{
    padding:10px 0;
  }
  body.login-page .gh-doc{
    padding:32px 28px 36px;
  }
}

@media (max-width:760px){
  html::after{
    background-size:100% 100%,auto min(70vh,820px),100% 100%;
  }
  body.login-page{
    padding:calc(var(--hh-nav) + 24px) 14px 28px;
  }
  body.login-page .auth-container input[type="email"],
  body.login-page .auth-container input[type="password"],
  body.login-page .auth-container input[type="text"]{
    font-size:16px;
  }
  body.login-page .gh-doc{
    padding:26px 18px 30px;
  }
  body.login-page .gh-doc h1,
  body.login-page .auth-container h1{
    font-size:1.55rem;
  }
  body.login-page .gh-mail-row{
    flex-direction:column;
    align-items:stretch;
  }
  body.login-page .gh-mail-actions .gh-btn{
    flex:1 1 0;
  }
}

@media (max-width:400px){
  .gh-brand{
    font-size:.92rem;
    letter-spacing:.03em;
  }
  .gh-brand::before{
    width:24px;
    height:24px;
  }
  .gh-cta{
    min-width:88px;
    padding:0 12px;
  }
  body.login-page .auth-container{
    padding:28px 16px 24px;
  }
  body.login-page #turnstile-widget{
    zoom:.85;
  }
}

@media (max-width:520px){
  .gh-links a{
    padding:0 10px;
    font-size:.76rem;
    letter-spacing:.05em;
  }
  .gh-links a.is-active::before{
    left:10px;
    right:10px;
  }
}

