:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 54px;
  color: white;
  background: #356ae6;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
}

.auth-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 6px;
  border-radius: 8px;
  background: white;
}
.auth-mark i { width: 3px; border-radius: 2px; background: #356ae6; }
.auth-mark i:nth-child(1) { height: 6px; }
.auth-mark i:nth-child(2) { height: 13px; }
.auth-mark i:nth-child(3) { height: 9px; }

.auth-brand h1 {
  max-width: 530px;
  margin: 0 0 22px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.auth-brand p { max-width: 500px; margin: 0; color: #dce6ff; font-size: 17px; line-height: 1.6; }
.auth-brand small { color: #c9d8ff; }

.auth-panel { display: grid; place-items: center; padding: 40px; }
.auth-card { width: min(420px, 100%); }
.auth-card h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.04em; }
.auth-intro { margin: 0 0 29px; color: #6f788b; font-size: 14px; }
.auth-form { display: grid; gap: 18px; }
.auth-form label { display: grid; gap: 7px; color: #515b6d; font-size: 12px; font-weight: 650; }
.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d7dce6;
  border-radius: 8px;
  outline: none;
  font: inherit;
}
.auth-form input:focus { border-color: #356ae6; box-shadow: 0 0 0 3px #eaf0ff; }
.auth-form button {
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: #356ae6;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-form button:hover { background: #2858c7; }
.auth-switch { margin-top: 24px; color: #6f788b; font-size: 13px; text-align: center; }
.auth-switch a { color: #356ae6; font-weight: 650; text-decoration: none; }
.errorlist { margin: 0; padding: 0; color: #c94f42; font-size: 11px; font-weight: 500; list-style: none; }
.form-error { margin-bottom: 18px; padding: 11px 13px; border-radius: 8px; color: #9e3f34; background: #fff0ee; font-size: 12px; }

@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 300px; padding: 30px 24px; }
  .auth-brand h1 { margin-top: 55px; font-size: 36px; }
  .auth-brand small { display: none; }
  .auth-panel { padding: 38px 22px; }
}
