:root {
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20343c;
  background: #f5f7f8
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

a {
  color: #176c73;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

button,
input {
  font: inherit
}

button,
a {
  touch-action: manipulation
}

.auth-layout {
  min-height: 100dvh;
  display: grid
}

.auth-panel {
  width: 100%;
  max-width: 500px;
  margin: auto;
  padding: 28px 20px 30px
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 750;
  color: #20343c;
  margin-bottom: 34px;
  letter-spacing: -.35px
}

.brand-icon {
  display: grid;
  place-items: center;
  background: #243f49;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 16px
}

.auth-card {
  background: white;
  border: 1px solid #dfe6e8;
  border-radius: 12px;
  padding: 25px 21px;
  box-shadow: 0 6px 24px #20343c05
}

.eyebrow {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #637b85;
  margin: 0 0 10px
}

h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 12px
}

.intro {
  color: #647780;
  font-size: 14px;
  margin: 0 0 27px
}

label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 18px 0 7px
}

input:not([type=checkbox]) {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid #b9c9cf;
  border-radius: 7px;
  background: white;
  padding: 12px;
  color: #20343c
}

input:focus {
  border-color: #176c73
}

.password-field {
  position: relative
}

.password-field input {
  padding-right: 68px
}

.show-password {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  border: 0;
  background: transparent;
  padding: 0 12px;
  color: #476572;
  font-size: 12px;
  min-width: 52px;
  cursor: pointer
}

.form-options {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 16px 0 22px;
  font-size: 12px;
  flex-wrap: wrap
}

.check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500
}

.check input {
  width: 19px;
  height: 19px;
  accent-color: #176c73;
  margin: 0
}

.submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 7px;
  background: #234c59;
  color: white;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px
}

.submit:hover {
  background: #183d48
}

.submit:disabled {
  opacity: .6;
  cursor: wait
}

.feedback {
  padding: 12px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 18px;
  white-space: pre-wrap
}

.error {
  background: #fff1f1;
  color: #98313e;
  border: 1px solid #f0c8cc
}

.notice {
  background: #ebf5f0;
  color: #205d45;
  border: 1px solid #c9e3d6
}

.auth-foot {
  font-size: 11px;
  text-align: center;
  color: #6d8088;
  margin: 22px 12px
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  min-height: 44px;
  padding: 10px
}

.auth-aside {
  display: none
}

#auth-progress {
  font-size: 12px;
  color: #647780;
  margin: 10px 0 0
}

#auth-progress:empty {
  display: none
}

:focus-visible {
  outline: 3px solid #2c8994;
  outline-offset: 3px
}

@media(min-width:768px) {
  .auth-panel {
    padding: 48px 25px
  }

  .auth-card {
    padding: 34px
  }

  h1 {
    font-size: 33px
  }

  .workspace-brand {
    margin-bottom: 42px
  }
}

@media(min-width:1024px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr)
  }

  .auth-panel {
    max-width: 510px;
    padding: 45px 25px
  }

  .auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #e6eef0;
    border-left: 1px solid #d4e0e4;
    padding: 70px max(40px, 8vw);
    min-width: 0
  }

  .aside-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: #cfdee3;
    color: #355561;
    border-radius: 11px;
    font-weight: 750;
    font-size: 23px;
    margin-bottom: 38px
  }

  .auth-aside h2 {
    font-size: 44px;
    letter-spacing: -1.8px;
    line-height: 1.17;
    margin: 0 0 22px;
    font-weight: 650
  }

  .auth-aside>p {
    font-size: 16px;
    color: #59747f;
    max-width: 330px;
    margin: 0
  }

  .aside-features {
    display: grid;
    gap: 14px;
    font-size: 12px;
    color: #476572;
    border-top: 1px solid #c5d7dd;
    margin-top: 46px;
    padding-top: 25px
  }

  .aside-features span:before {
    content: "✓";
    margin-right: 10px;
    color: #2d6e6a
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto
  }
}

.form-options>a {
  display: flex;
  align-items: center;
  min-height: 44px
}
