:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #17232d;
  background: #eef2f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #eef2f4;
}

button,
input {
  font: inherit;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-panel {
  width: min(760px, 100%);
  padding: 28px 32px 32px;
  background: #ffffff;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(28, 45, 55, 0.1);
}

.auth-panel-compact {
  width: min(430px, 100%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e7ecef;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #0b766e;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.auth-brand div {
  display: grid;
  gap: 2px;
}

.auth-brand strong {
  font-size: 17px;
}

.auth-brand span:last-child {
  color: #66757f;
  font-size: 12px;
}

.auth-heading {
  margin: 26px 0 24px;
}

.auth-eyebrow {
  margin: 0 0 7px;
  color: #0b766e;
  font-size: 12px;
  font-weight: 700;
}

.auth-heading h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
}

.auth-heading p:last-child {
  margin: 9px 0 0;
  color: #66757f;
  font-size: 14px;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid #d9e1e5;
  border-radius: 6px;
}

.auth-form legend {
  padding: 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #3c4b54;
  font-size: 13px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #c8d2d8;
  border-radius: 5px;
  outline: none;
  color: #17232d;
  background: #ffffff;
}

.auth-form input:focus {
  border-color: #0b766e;
  box-shadow: 0 0 0 3px rgba(11, 118, 110, 0.12);
}

.auth-note {
  margin: 0;
  padding: 11px 13px;
  border-left: 3px solid #cf8d19;
  background: #fff8e9;
  color: #66501f;
  font-size: 13px;
  line-height: 1.6;
}

.auth-submit {
  min-height: 44px;
  border: 0;
  border-radius: 5px;
  background: #0b766e;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit:hover {
  background: #075f59;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: #52616a;
  font-size: 13px;
  text-align: center;
}

.auth-message[data-kind="error"] {
  color: #b42318;
}

@media (max-width: 700px) {
  .auth-layout {
    padding: 16px;
  }

  .auth-panel {
    padding: 22px 18px 24px;
  }

  .auth-form fieldset {
    grid-template-columns: 1fr;
  }
}
