:root {
  color-scheme: light;
  font-family:
    Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    system-ui, sans-serif;
  color: #17202a;
  background: #f3f5f8;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid #e1e5eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(23, 32, 42, 0.1);
}

.eyebrow {
  margin: 0 0 10px;
  color: #147d6f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  letter-spacing: -0.04em;
}

.description {
  margin: 12px 0 30px;
  color: #626d79;
  font-size: 0.94rem;
  line-height: 1.65;
}

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

form > label:not(.remember-row) {
  margin-top: 5px;
  font-size: 0.88rem;
  font-weight: 700;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #147d6f;
  box-shadow: 0 0 0 3px rgba(20, 125, 111, 0.14);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  color: #4e5965;
  font-size: 0.88rem;
  cursor: pointer;
}

.remember-row input {
  width: 17px;
  height: 17px;
  accent-color: #147d6f;
}

.message {
  min-height: 1.45em;
  margin: 4px 0 0;
  color: #bc2f2f;
  font-size: 0.86rem;
  line-height: 1.45;
}

button {
  height: 50px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: #147d6f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

button:hover {
  background: #0e695e;
}

button:active {
  transform: translateY(1px);
}

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

@media (max-width: 520px) {
  .login-shell {
    padding: 16px;
  }

  .login-card {
    padding: 30px 22px;
    border-radius: 14px;
  }
}
