:root {
  color-scheme: light;
  font-family: Pretendard, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: #182031;
  background: #eff1f5;
  font-synthesis: none;
  --ink: #1d1d25;
  --navy: #182031;
  --blue: #245dd6;
  --blue-strong: #194dbb;
  --muted: #636774;
  --line: #cfd4dc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--navy);
  background: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
  min-height: 100vh;
  padding: 56px 52px;
  color: #fff;
  background: #182031;
}

.login-brand::after {
  display: none;
}

.login-wordmark {
  position: relative;
  z-index: 1;
  display: block;
  width: 120px;
  height: auto;
}

.login-brand > .login-wordmark {
  filter: brightness(0) invert(1);
}

.login-wordmark--mobile {
  display: none;
  width: 108px;
  margin-bottom: 42px;
}

.product-lockup {
  max-width: 310px;
}

.login-eyebrow {
  display: none;
}

.product-lockup h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 3.6vw, 52px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.product-descriptor {
  margin: 22px 0 0;
  color: #e4e8ef;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.product-summary,
.product-lockup > p:last-child {
  margin: 9px 0 0;
  color: #c7ceda;
  font-size: 14px;
  line-height: 1.6;
}

.login-pipeline {
  display: none;
}

.login-pipeline li {
  display: grid;
  gap: 5px;
  padding: 15px 12px 0 0;
  color: #dfe4ec;
  border-right: 1px solid #394457;
  font-size: 12px;
  font-weight: 600;
}

.login-pipeline li:last-child {
  border-right: 0;
}

.login-pipeline span {
  color: #7296e9;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 500;
}

.login-panel {
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-width: 0;
  padding: 48px;
  background: #fff;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.login-content {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  padding: 0;
}

.login-content > h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 740;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.login-content > .login-eyebrow {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
}

.description {
  margin: 9px 0 30px;
  color: var(--muted);
  font-size: 15px;
}

.login-error {
  margin: -8px 0 18px;
  padding: 10px 11px;
  color: #a22f34;
  background: #fff0f0;
  border: 1px solid #e6b4b7;
  border-left: 3px solid #c43e42;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.45;
}

.microsoft-login {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 3px;
  font-size: 15px;
  font-weight: 680;
  text-decoration: none;
  flex-wrap: wrap;
  min-width: 0;
  text-align: center;
}

.microsoft-login:hover {
  background: var(--blue-strong);
  border-color: var(--blue-strong);
}

.microsoft-login:focus-visible,
input:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #3f74e8;
  outline-offset: 2px;
}

.microsoft-symbol {
  display: grid;
  width: 20px;
  height: 20px;
  padding: 2px;
  background: #fff;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5px;
}

.microsoft-symbol i:nth-child(1) { background: #f25022; }
.microsoft-symbol i:nth-child(2) { background: #7fba00; }
.microsoft-symbol i:nth-child(3) { background: #00a4ef; }
.microsoft-symbol i:nth-child(4) { background: #ffb900; }

.company-note {
  display: none;
}

.emergency-login {
  border-top: 1px solid #dfe3e8;
}

.emergency-login summary {
  padding: 16px 0 0;
  color: #5e6775;
  font-size: 13px;
  cursor: pointer;
  list-style-position: inside;
  text-align: center;
}

.emergency-login[open] summary {
  margin-bottom: 18px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 5px;
  color: #4e5968;
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  height: 46px;
  padding: 0 11px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #b9c0ca;
  border-radius: 3px;
  font: inherit;
  font-size: 15px;
  outline: none;
}

input:hover {
  border-color: #8a95a4;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

button {
  height: 46px;
  margin-top: 2px;
  color: #fff;
  background: #263b75;
  border: 1px solid #263b75;
  border-radius: 3px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #1c2f61;
  border-color: #1c2f61;
}

.network-note {
  margin: 24px 0 0;
  padding-top: 16px;
  color: #7b828d;
  border-top: 1px solid #e0e3e8;
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Compatibility with a pre-upgrade login template during rolling restart. */
.login-card {
  width: min(100%, 440px);
  margin: auto;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.login-mark {
  width: 96px;
  height: 18px;
  margin-bottom: 34px;
  color: transparent;
  background: url("/korot-wordmark.svg?v=20260902-1") center / contain no-repeat;
}

@media (max-width: 860px) {
  .login-shell {
    display: block;
  }

  .login-brand {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 36px 24px;
  }

  .login-wordmark--mobile {
    display: block;
  }
}

@media (max-width: 480px) {
  .login-panel {
    padding: 28px 20px;
    place-items: center;
  }

  .login-content {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    padding: 0;
  }

  .login-wordmark--mobile {
    margin-bottom: 48px;
  }

  .login-content > h2 {
    font-size: 24px;
  }
}

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