/* The existing application owns forms and navigation. These rules style the three account screens. */
.study-cover[hidden], .study-oauth[hidden] { display: none !important; }

html[data-study-auth] {
  --study-ink: #173833;
  --study-muted: #546760;
  --study-line: #c8d1c9;
  --study-paper: #f9f8f2;
  color-scheme: light;
  background: var(--study-paper);
}
html[data-study-auth], html[data-study-auth] body {
  height: auto !important;
  min-height: 100%;
  overflow: auto !important;
}
.study-layout { display: contents; }
html[data-study-auth] .study-layout {
  display: grid;
  grid-template-columns: minmax(265px, .87fr) minmax(410px, 1.13fr);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--study-ink);
  background: var(--study-paper);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.study-cover {
  position: relative;
  isolation: isolate;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  box-sizing: border-box;
  padding: clamp(28px, 4.4vw, 74px);
  overflow: hidden;
  color: #f7f2e2;
  background-color: #153d35;
  background-image: linear-gradient(0deg, rgba(10,37,30,.85), transparent 54%), url("cover.webp");
  background-size: cover;
  background-position: 52% center;
}
.study-identity { display: flex; align-items: center; gap: 14px; }
.study-wordmark { width: 46px; height: 46px; object-fit: contain; }
.study-domain { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: .035em; }
.study-cover-copy { margin-top: 80px; margin-bottom: clamp(12px, 6vh, 90px); }
.study-cover h1 {
  padding: 0;
  margin: 0;
  font: 600 clamp(42px, 5.5vw, 82px)/1.22 "STSong", "Songti SC", "Noto Serif CJK SC", serif;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.study-cover-copy p { margin: 15px 0 0; font-size: clamp(14px, 1.4vw, 18px); line-height: 1.7; color: #d7e4d8; }
html[data-study-auth] #app {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  height: auto !important;
  display: grid;
}
html[data-study-auth] #app > .n-config-provider, html[data-study-auth] #app > div { min-height: 100%; }
html[data-study-auth] .study-auth-surface {
  min-height: 100%;
  height: auto !important;
  background: transparent !important;
  box-sizing: border-box;
  padding: 48px clamp(32px, 5vw, 100px);
}
html[data-study-auth] .study-auth-card.n-card {
  flex: 0 1 396px;
  width: 100%;
  max-width: 396px;
  min-width: 0;
  margin: auto;
  background: transparent;
  border: 0;
  color: var(--study-ink);
  box-shadow: none;
}
.study-auth-card .n-card__content { padding: 0 !important; }
.study-form-title {
  margin: 0 0 32px;
  padding: 0;
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", serif;
  color: var(--study-ink);
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.03em;
}
.study-auth-card .study-form-fields { padding: 0; }
.study-form-fields > h1, .study-form-fields > h5, .study-form-fields > .text-center:has(> img) { display: none; }
.study-form-fields > .mt-5 { margin-top: 16px; }
.study-form-fields .n-input {
  --n-height: 50px !important;
  --n-border: 1px solid var(--study-line) !important;
  --n-border-hover: 1px solid #749388 !important;
  --n-border-focus: 1px solid #256552 !important;
  --n-box-shadow-focus: 0 0 0 3px #4e8b702d !important;
  --n-border-radius: 8px !important;
  --n-color: #fffefa !important;
  --n-color-focus: #fffefa !important;
  --n-text-color: #152e28 !important;
  --n-placeholder-color: #60736a !important;
  --n-caret-color: #245749 !important;
  width: 100%;
  font-size: 16px;
}
.study-form-fields .n-input__input-el { font: inherit; }
.study-form-fields .n-button--primary-type {
  --n-color: #245747 !important; --n-color-hover: #19483a !important;
  --n-color-pressed: #12382d !important; --n-color-focus: #19483a !important;
  --n-border: 1px solid #245747 !important; --n-border-hover: 1px solid #19483a !important;
  --n-border-pressed: 1px solid #12382d !important; --n-border-focus: 1px solid #19483a !important;
}
.study-form-fields .n-button--primary-type.w-full {
  height: 49px; margin: 6px 0 0; border-radius: 8px; font-weight: 600; font-size: 16px;
}
.study-form-fields .n-button--primary-type.w-full .n-button__icon { display: none; }
.study-oauth {
  box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 47px; margin-top: 12px; gap: 10px; border-radius: 8px;
  color: var(--study-ink); text-decoration: none; font-size: 15px; font-weight: 550;
  background: #fffefa; border: 1px solid var(--study-line);
}
.study-oauth:hover { background: #eff4ec; border-color: #86a193; }
.study-linuxdo-mark { width: 17px; height: 17px; border-radius: 50%; background: linear-gradient(#202124 0 33%, #fffefa 33% 65%, #e5ad43 65%); box-shadow: inset 0 0 0 1px #0002; }
.study-auth-card .n-card__content > .flex.justify-between {
  align-items: center; gap: 12px; padding: 20px 0 0; margin-top: 23px;
  border-top: 1px solid #d9dfd5; background: transparent; color: var(--study-muted);
}
.study-auth-card a.text-gray-500 { color: var(--study-muted); text-decoration: none; }
.study-auth-card a.text-gray-500:hover { text-decoration: underline; }
.study-auth-card .n-card__content > .flex.justify-between .n-button {
  --n-text-color: var(--study-muted) !important;
  --n-color: transparent !important;
  --n-border: 1px solid var(--study-line) !important; --n-border-radius: 6px !important;
}
.study-auth-card a:focus-visible, .study-auth-card button:focus-visible {
  outline: 2px solid #397664; outline-offset: 3px;
}
/* The account sidebar uses the same book mark and ink tones as the sign-in page. */
.study-layout .n-layout-sider {
  --n-color: #183e34 !important;
  --n-text-color: #f1f0df !important;
  --n-border-color: #315448 !important;
  background: #183e34;
}
.study-layout .n-layout-sider .title-text {
  color: #f1f0df !important;
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", serif;
}
.study-layout .n-layout-sider .h-15 > button {
  --n-text-color: #dce7d7 !important;
  --n-text-color-hover: white !important;
}
.study-layout .side-menu {
  --n-border-radius: 7px !important;
  --n-group-text-color: #acc7b4 !important;
  --n-item-text-color: #e4ecdd !important;
  --n-item-icon-color: #c3d6b9 !important;
  --n-item-text-color-hover: #fffcec !important;
  --n-item-icon-color-hover: #fffcec !important;
  --n-item-color-hover: #294f42 !important;
  --n-item-color-active: #d8e2c7 !important;
  --n-item-color-active-hover: #e4ead9 !important;
  --n-item-text-color-active: #193e34 !important;
  --n-item-icon-color-active: #193e34 !important;
  --n-item-text-color-active-hover: #193e34 !important;
  --n-item-icon-color-active-hover: #193e34 !important;
  --n-item-text-color-child-active: #eef3db !important;
  --n-item-icon-color-child-active: #eef3db !important;
}
.study-layout .n-layout .n-card {
  --n-border-radius: 12px !important;
  border-radius: 12px;
}
.study-layout .n-layout .n-card-header__main {
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", serif;
}
@media (max-width: 760px) {
  html[data-study-auth] .study-layout { display: flex; flex-direction: column; }
  .study-cover {
    flex: none; min-height: 0; padding: 23px max(24px, calc((100vw - 540px) / 2));
    background-position: center 38%;
  }
  .study-identity { gap: 9px; }
  .study-wordmark { width: 30px; height: 30px; }
  .study-domain { font-size: 14px; }
  .study-cover-copy { margin: 25px 0 4px; }
  .study-cover h1 { font-size: 35px; }
  .study-cover-copy p { margin-top: 6px; font-size: 14px; }
  html[data-study-auth] #app { display: block; flex: 1 0 auto; min-height: 0; }
  html[data-study-auth] .study-auth-surface { padding: 28px 24px max(32px, env(safe-area-inset-bottom)); }
  .study-form-title { margin-bottom: 20px; font-size: 30px; }
  .study-form-fields > .mt-5 { margin-top: 12px; }
}
@media (min-width: 761px) and (max-height: 540px) {
  html[data-study-auth] .study-auth-surface { padding-block: 24px; }
}
