:root {
  --bg: #f4f5f7;
  --paper: #f7f8fa;
  --surface: #ffffff;
  --line: #e8eaee;
  --line-strong: #d7dbe2;
  --text: #1a2233;
  --muted: #6b7380;
  --accent: #c9952e;
  --accent-hover: #b48427;
  --danger: #b42318;
  --danger-bg: #f8e8e6;
  --radius-sm: 10px;
  --font: Inter, system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
*,
*::before,
*::after { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  overflow: auto;
  background: #fff;
}
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
h1 { margin: 0; font-weight: 650; letter-spacing: -0.03em; }
button, input { font: inherit; color: inherit; }
.login-screen {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  align-items: stretch;
}
.login-brand {
  flex: 0 0 45%;
  max-width: 45%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #0B1421;
  background-image:
    linear-gradient(180deg, rgba(11,20,33,.55) 0%, rgba(9,17,29,.72) 55%, rgba(9,17,29,.88) 100%),
    url("../assets/login/sidebar-car.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  color: #fff;
}
.login-brand-inner {
  text-align: center;
  max-width: 360px;
}
.login-logo {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 28px;
  object-fit: contain;
}
.login-slogan {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-style: italic;
  color: #E0B44F;
  font-size: 20px;
  letter-spacing: .01em;
}
.login-slogan::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 14px auto 0;
  background: rgba(212, 163, 58, .7);
}
.login-kicker {
  margin: 16px 0 0;
  color: #9AA4B2;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 650;
}
.login-panel {
  flex: 1 1 55%;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px 28px;
}
.login-form-wrap {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 32px 28px 22px;
}
.login-form-wrap h1 {
  font-size: 26px;
  margin: 0 0 8px;
}
.login-lead {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.login-sub {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #e2b8b4;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
}
.login-form-wrap .form-group {
  margin-bottom: 14px;
}
.login-form-wrap .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.input-with-icon {
  position: relative;
  width: 100%;
  min-width: 0;
}
.input-with-icon > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-form-wrap .input-with-icon > input {
  width: 100%;
  height: 50px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0 14px 0 44px;
  -webkit-appearance: none;
  appearance: none;
}
.login-form-wrap .has-right-icon > input {
  padding-right: 44px;
}
.login-form-wrap input::placeholder { color: #94A3B8; }
.login-form-wrap input:hover { border-color: #b8c0cb; }
.login-form-wrap input:focus,
.login-form-wrap input:focus-visible {
  outline: none;
  border: 1px solid #C9952E;
  box-shadow: 0 0 0 3px rgba(201, 149, 46, .12);
}
.login-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
}
.login-eye:hover { color: var(--text); background: var(--paper); }
.login-eye svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-eye .login-eye-on { display: none; }
.login-eye.is-on .login-eye-off { display: none; }
.login-eye.is-on .login-eye-on { display: block; }
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.login-remember input { accent-color: var(--accent); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 8px 14px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  min-height: 40px;
  font-weight: 600;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a2233;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #1a2233; }
.login-submit {
  width: 100%;
  height: 52px;
  min-height: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
.login-submit:disabled {
  opacity: .7;
  pointer-events: none;
}
.login-copy {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .login-screen { flex-direction: column; }
  .login-brand {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    min-height: 180px;
    padding: 28px 20px 24px;
  }
  .login-logo { max-width: 160px; margin-bottom: 16px; }
  .login-slogan { font-size: 16px; }
  .login-panel {
    flex: 1 1 auto;
    align-items: flex-start;
    padding: 20px 16px 24px;
  }
  .login-form-wrap {
    padding: 24px 18px 18px;
    box-shadow: none;
  }
}
