:root {
  --blue: #143d35;
  --blue-dark: #0d302a;
  --ink: #252925;
  --muted: #74766f;
  --line: #c9c6bb;
  --soft: #f6f2e8;
  --danger: #b54732;
  --success: #216b55;
  --terracotta: #c7654b;
  --shadow: none;
}

html,
body,
.auth-page,
.register-panel {
  background: #f6f2e8;
}

.topbar {
  border-bottom-color: rgba(20, 61, 53, .22);
  background: rgba(246, 242, 232, .97);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--terracotta);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark::before {
  inset: 6px;
  border: 1px solid var(--terracotta);
  background: transparent;
  clip-path: none;
  transform: rotate(45deg);
}

.brand-mark span {
  width: 13px;
  height: 13px;
  left: 10px;
  top: 10px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  background: #143d35;
  transform: none;
}

.auth-layout {
  grid-template-columns: minmax(300px, 36%) 1fr;
}

.visual-panel,
.register-visual {
  background: #143d35;
  border-right: 1px solid rgba(246, 242, 232, .28);
}

.visual-panel::before,
.register-visual::before {
  content: "";
  position: absolute;
  inset: 17% 18%;
  border: 1px solid rgba(199, 101, 75, .78);
}

.visual-panel::after,
.register-visual::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  left: calc(50% - 45px);
  top: calc(50% - 45px);
  border: 2px solid #c7654b;
  border-radius: 50%;
  box-shadow: -46px -46px 0 -45px #c7654b, 46px 46px 0 -45px #c7654b;
}

.paper {
  display: none;
}

.form-panel {
  place-items: center start;
  padding-inline: clamp(44px, 9vw, 150px);
}

.login-shell {
  width: min(430px, 100%);
}

.form-heading {
  text-align: left;
}

.form-heading h1 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 600;
  letter-spacing: .08em;
}

.form-heading p {
  letter-spacing: .04em;
}

.control,
.captcha-box,
.secondary-button {
  border-color: #aaa89f;
  border-radius: 4px;
  background: rgba(255, 255, 255, .32);
}

.control:focus-within {
  border-color: #143d35;
  box-shadow: 0 0 0 3px rgba(20, 61, 53, .12);
}

.primary-button {
  border-radius: 4px;
  background: #143d35;
  box-shadow: none;
  letter-spacing: .08em;
}

.primary-button:hover:not(:disabled) {
  background: #0d302a;
  box-shadow: none;
}

a,
.link-button,
.register-home,
.secondary-button {
  color: #b6543e;
}

.legal-links {
  justify-content: flex-start;
  border-top: 1px solid rgba(20, 61, 53, .22);
  padding-top: 26px;
}

.register-layout {
  grid-template-columns: minmax(300px, 34%) 1fr;
}

.register-brand {
  color: #f6f2e8;
}

.register-brand span {
  color: rgba(246, 242, 232, .7);
}

.register-panel {
  border-left: 0;
}

.register-shell {
  width: min(650px, 100%);
}

.form-heading.compact h1 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 40px;
  letter-spacing: .08em;
}

.policy-group {
  border-color: #aaa89f;
  border-radius: 4px;
  background: rgba(255, 255, 255, .2);
}

.page-message,
.policy-message {
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(199, 101, 75, .5);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .visual-panel {
    display: none;
  }

  .register-visual {
    min-height: 132px;
    border-right: 0;
    border-bottom: 1px solid rgba(199, 101, 75, .58);
  }

  .register-visual::before {
    inset: 20px;
  }

  .register-visual::after {
    width: 44px;
    height: 44px;
    left: auto;
    right: 34px;
    top: 42px;
  }
}

@media (max-width: 600px) {
  .form-panel,
  .register-panel {
    padding-inline: 20px;
  }

  .form-heading h1 {
    font-size: 34px;
  }

  .form-heading.compact h1 {
    font-size: 31px;
  }

  .legal-links {
    justify-content: center;
  }

  .register-visual {
    min-height: 112px;
  }

  .register-brand {
    margin: 24px 72px 20px 20px;
  }
}
