@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f4f6f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(420px, 0.95fr);
  min-height: 100vh;
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 6vw, 80px);
  background: #111827;
  color: #fff;
}

.login-brand-mark img {
  display: block;
  width: 240px;
  max-width: 60%;
  height: auto;
}

.login-brand h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.login-brand p {
  max-width: 520px;
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.65;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 32px;
  background: #fff;
}

.login-panel-inner {
  width: min(100%, 400px);
}

.login-eyebrow {
  color: #0f62b5;
  font-size: 12px;
  font-weight: 800;
}

.login-panel h2 {
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

.login-panel header p,
.login-support {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.login-error {
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid #f2b8b5;
  border-radius: 4px;
  background: #fff5f5;
  color: #b42318;
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.login-form small {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd6df;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font: inherit;
  outline: 0;
}

.login-form input:hover {
  border-color: #98a2b3;
}

.login-form input:focus {
  border-color: #1683e2;
  box-shadow: 0 0 0 3px rgba(22, 131, 226, 0.14);
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  padding-right: 64px;
}

.login-form .password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 48px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.login-form .password-toggle:hover {
  background: #f2f4f7;
  color: #0f62b5;
}

.password-confirm-feedback {
  min-height: 17px;
}

.password-confirm-feedback[data-state="invalid"] {
  color: #b42318;
}

.password-confirm-feedback[data-state="valid"] {
  color: #067647;
}

.login-form button {
  height: 44px;
  border: 1px solid #0f62b5;
  border-radius: 4px;
  background: #0f62b5;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.login-form button:hover {
  background: #0b559e;
}

.login-form button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(22, 131, 226, 0.22);
}

.login-support {
  margin-top: 22px;
}

.login-logout-form {
  margin-top: 14px;
}

.login-logout-form button {
  width: 100%;
  height: 42px;
  border: 0;
  background: transparent;
  color: #475467;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.login-logout-form button:hover {
  color: #0f62b5;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .login-page {
    display: block;
    background: #fff;
  }

  .login-brand {
    min-height: 210px;
    padding: 28px 24px;
  }

  .login-brand h1 {
    font-size: 30px;
  }

  .login-panel {
    display: block;
    padding: 32px 24px 48px;
  }
}
