:root {
  --bg: #edf8fc;
  --surface: #ffffff;
  --surface-soft: #f2fbff;
  --ink: #0b2134;
  --muted: #4e6677;
  --subtle: #7390a1;
  --border: #c4dee8;
  --border-strong: #91bdce;
  --primary: #006cff;
  --primary-hover: #0052cc;
  --primary-soft: #dff0ff;
  --cyan: #009f91;
  --red: #c9384b;
  --red-soft: #ffe7eb;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(36, 87, 214, 0.22);
  outline-offset: 2px;
}

h1,
h2,
p,
dl,
dd,
dt {
  margin-top: 0;
}

.login-screen {
  background: #e8f7fb;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.login-layout {
  background: var(--surface);
  border: 1px solid #cdd5d1;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(440px, 1.1fr);
  margin: auto;
  min-height: 620px;
  overflow: hidden;
  width: min(1080px, 100%);
}

.login-context {
  background: #081d2d;
  color: #f1fbff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 58px 82px;
}

.eyebrow {
  color: #5ed4cb;
  font-size: 9px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.login-context h1 {
  font-size: 34px;
  line-height: 1.22;
  margin-bottom: 14px;
}

.login-context > p:last-of-type {
  color: #a8b2bf;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 350px;
}

.login-facts {
  border-top: 1px solid #333b48;
  margin: 42px 0 0;
}

.login-facts > div {
  align-items: center;
  border-bottom: 1px solid #333b48;
  display: grid;
  gap: 20px;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 15px 0;
}

.login-facts dt {
  color: #7e8997;
  font-size: 9px;
}

.login-facts dd {
  font-size: 10px;
  margin-bottom: 0;
}

.login-panel {
  align-self: center;
  justify-self: center;
  max-width: 410px;
  padding: 52px 36px;
  width: 100%;
}

.login-panel > header {
  align-items: center;
  display: flex;
  gap: 13px;
  margin-bottom: 32px;
}

.login-lock {
  align-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.login-lock svg {
  height: 19px;
  width: 19px;
}

.login-panel > header p {
  color: var(--subtle);
  font-size: 8px;
  font-weight: 700;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.login-panel > header h2 {
  font-size: 20px;
  margin: 0;
}

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

.login-panel form > label > span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 600;
  margin-bottom: 7px;
}

.login-panel form > label > input,
.login-panel .secret-input {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  width: 100%;
}

.login-panel form > label > input {
  height: 42px;
  padding: 0 11px;
}

.login-panel form input::placeholder {
  color: var(--subtle);
}

.secret-input {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  height: 42px;
}

.secret-input:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 101, 112, 0.12);
}

.secret-input input {
  background: transparent;
  border: 0;
  height: 38px;
  min-width: 0;
  outline: 0;
  padding: 0 11px;
  width: 100%;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 36px;
}

.icon-button:hover {
  background: #dff1f7;
}

.icon-button svg {
  color: var(--muted);
  height: 17px;
  width: 17px;
}

.login-error {
  align-items: flex-start;
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  color: var(--red);
  display: grid;
  font-size: 9px;
  gap: 8px;
  grid-template-columns: 15px minmax(0, 1fr);
  line-height: 1.5;
  padding: 10px 11px;
}

.login-error svg {
  height: 14px;
  margin-top: 1px;
  width: 14px;
}

.primary-button {
  align-items: center;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.primary-button svg {
  height: 15px;
  width: 15px;
}

.login-submit {
  height: 42px;
  margin-top: 4px;
  width: 100%;
}

.login-panel > footer {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  display: flex;
  font-size: 8px;
  gap: 7px;
  margin-top: 28px;
  padding-top: 16px;
}

.login-panel > footer svg {
  height: 13px;
  width: 13px;
}

@media (max-width: 600px) {
  .login-screen {
    background: #121720;
    padding: 0;
  }

  .login-layout {
    border: 0;
    display: block;
    margin: 0;
    min-height: 100vh;
    width: 100%;
  }

  .login-context {
    min-height: 190px;
    padding: 32px 24px 34px;
  }

  .login-context h1 {
    font-size: 27px;
  }

  .login-facts {
    display: none;
  }

  .login-panel {
    min-height: calc(100vh - 190px);
    padding: 38px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
