:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #171923;
  background: #f5f7fa;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(420px, 1fr);
  background: #f5f7fa;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 64px clamp(36px, 7vw, 110px);
  color: #fff;
  background: #202431;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #5547ed;
  font-size: 28px;
  font-weight: 800;
}
.auth-brand h1 { margin: 20px 0 4px; font-size: 34px; letter-spacing: 0; }
.auth-brand p { margin: 0; color: #bdc3d1; font-size: 15px; }
.auth-panel {
  align-self: center;
  width: min(420px, calc(100vw - 40px));
  margin: 36px auto;
}
.auth-panel header { margin-bottom: 24px; }
.auth-panel header span { color: #5547ed; font-size: 12px; font-weight: 700; }
.auth-panel h2 { margin: 7px 0; font-size: 25px; letter-spacing: 0; }
.auth-panel p { margin: 0; color: #667085; line-height: 1.65; font-size: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 28px; padding: 4px; border: 1px solid #dfe3ea; border-radius: 8px; background: #fff; }
.auth-tabs button { height: 38px; border: 0; border-radius: 6px; color: #667085; background: transparent; }
.auth-tabs button.active { color: #fff; background: #5547ed; font-weight: 700; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 650; }
input { width: 100%; height: 44px; border: 1px solid #cfd6e2; border-radius: 7px; padding: 0 12px; color: #171923; background: #fff; outline: none; }
input:focus { border-color: #5547ed; box-shadow: 0 0 0 3px rgba(85, 71, 237, .12); }
button.primary { height: 46px; margin-top: 4px; border: 0; border-radius: 7px; color: #fff; background: #5547ed; font-weight: 750; cursor: pointer; }
button.primary:disabled { opacity: .55; cursor: wait; }
.auth-message { min-height: 22px; margin-top: 16px; color: #c93843; font-size: 13px; }
.auth-message[data-ok="true"] { color: #087a55; }
@media (max-width: 760px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { min-height: 170px; justify-content: flex-end; padding: 28px 24px; }
  .auth-brand h1 { margin-top: 12px; font-size: 26px; }
  .brand-mark { width: 42px; height: 42px; font-size: 22px; }
  .auth-panel { margin: 34px auto; }
}
