:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f5f7fa;
  letter-spacing: 0;
}

* { box-sizing: border-box; letter-spacing: 0; }
html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; background: #f5f7fa; }
button, input { font: inherit; }

.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(340px, 42%) 1fr;
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 44px 52px;
  background: #101827;
  color: #fff;
}

.brand-panel::after {
  position: absolute;
  right: -130px;
  bottom: 9%;
  width: 340px;
  height: 340px;
  border: 72px solid rgba(156, 204, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.brand-lockup, .mobile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup img { width: 54px; height: 54px; object-fit: contain; }
.brand-lockup strong, .brand-lockup span { display: block; }
.brand-lockup strong { font-size: 20px; font-weight: 750; }
.brand-lockup span { margin-top: 2px; color: #9cccff; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.brand-message { position: relative; z-index: 1; max-width: 460px; }
.brand-kicker { color: #9cccff; font-size: 11px; font-weight: 800; }
.brand-message h1 { margin: 16px 0 14px; font-size: 38px; line-height: 1.25; }
.brand-message p { margin: 0; color: #aeb9ca; font-size: 15px; line-height: 1.7; }
.brand-status { display: flex; align-items: center; gap: 9px; color: #8491a5; font-size: 11px; }
.brand-status span { width: 7px; height: 7px; border-radius: 50%; background: #41c48d; box-shadow: 0 0 0 4px rgba(65, 196, 141, 0.12); }

.form-panel {
  display: grid;
  min-height: 100vh;
  padding: 42px;
  place-items: center;
  background: #eef2f7;
}

.login-form-wrap {
  width: min(100%, 440px);
  padding: 30px 32px 26px;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(29, 44, 70, 0.1);
}
.mobile-brand { display: none; }
.access-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: #778397;
  font-size: 10px;
  font-weight: 800;
}
.access-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31a875;
  box-shadow: 0 0 0 4px rgba(49, 168, 117, 0.11);
}
.access-status strong {
  margin-left: auto;
  color: #277d5b;
  font-size: 10px;
}
.login-heading { margin-bottom: 28px; }
.login-heading h2 { margin: 0 0 8px; color: #172033; font-size: 30px; line-height: 1.2; }
.login-heading p { margin: 0; color: #7b8799; font-size: 13px; }

.login-error {
  margin-bottom: 18px;
  padding: 11px 12px;
  border: 1px solid #ffd3d9;
  border-left: 3px solid #dc4456;
  border-radius: 4px;
  background: #fff0f2;
  color: #a7283a;
  font-size: 13px;
  line-height: 1.5;
}

form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
label { color: #344054; font-size: 13px; font-weight: 650; }
input[type="text"], input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #d9e0e9;
  border-radius: 6px;
  outline: 0;
  background: #f9fbfd;
  color: #172033;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input::placeholder { color: #a7b0bf; }
input:hover { border-color: #bfcbd9; }
input:focus { border-color: #4f91dc; background: #fff; box-shadow: 0 0 0 3px rgba(79, 145, 220, 0.13); }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 50px;
  border: 0;
  background: transparent;
  color: #607086;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.password-toggle:hover { color: #266bb9; }

.remember-row { display: inline-flex; width: fit-content; align-items: center; gap: 9px; color: #58667a; cursor: pointer; font-weight: 500; }
.remember-row input { width: 16px; height: 16px; margin: 0; accent-color: #347bc9; }
.login-button {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 6px;
  background: #185f96;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  transition: background 160ms ease, transform 160ms ease;
}
.login-button:hover { background: #104f7e; box-shadow: 0 8px 20px rgba(24, 95, 150, 0.18); }
.login-button:active { transform: translateY(1px); }
.login-button:disabled { cursor: wait; opacity: 0.72; }
footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 27px; color: #98a3b2; font-size: 11px; text-align: center; }
footer span { width: 5px; height: 5px; border-radius: 50%; background: #b4bdc9; }

@media (max-width: 820px) {
  .login-page { display: block; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100vh; padding: 32px 22px; place-items: center; background: #f4f7fa; }
  .mobile-brand { display: flex; position: absolute; top: 24px; left: 24px; }
  .mobile-brand img { width: 40px; height: 40px; object-fit: contain; }
  .mobile-brand strong { color: #172033; font-size: 16px; }
  .login-form-wrap { margin-top: 64px; padding: 28px 26px 24px; }
}

@media (max-width: 480px) {
  .form-panel { padding: 24px 20px; }
  .login-form-wrap { padding: 25px 20px 22px; }
  .access-status { margin-bottom: 28px; }
  .login-heading { margin-bottom: 26px; }
  .login-heading h2 { font-size: 28px; }
}
