:root {
  color-scheme: light;
  font-family: "Noto Sans KR Variable", "Noto Sans KR", "Geist Sans", "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: #182230;
  background: #f2f4f7;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 400px);
  padding: 32px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-logo {
  width: min(200px, 100%);
  height: auto;
  display: block;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

p {
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#status {
  margin: 8px 0 24px;
  color: #667085;
}

button, .action {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 14px;
  background: #3b5bdb;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

button:hover, .action:hover {
  background: #2f4cc0;
}

button:focus-visible, .action:focus-visible {
  outline: 2px solid #3b5bdb;
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

#sign-in, .action {
  width: 100%;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary {
  min-height: 36px;
  padding: 6px 10px;
  border-color: #d0d5dd;
  background: #fff;
  color: #182230;
  font-size: 13px;
  white-space: nowrap;
}

.secondary:hover {
  background: #f9fafb;
}

#models {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e4e7ec;
}

h2 {
  font-size: 16px;
  font-weight: 600;
}

#empty-models {
  margin-top: 12px;
  color: #667085;
}

#model-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  overflow-wrap: anywhere;
}

#model-list li {
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #f9fafb;
}

#model-list li + li {
  margin-top: 8px;
}

@media (max-width: 420px) {
  body {
    padding: 16px;
  }

  .login-card {
    padding: 24px;
  }

  .brand-logo {
    width: min(180px, 100%);
  }
}
