* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 32px 16px;
  display: grid;
  place-items: center;
  background: #f4f6f9;
  color: #1b1f27;
  font-family: Pretendard, 'Noto Sans KR', sans-serif;
}

.login-page {
  width: min(100%, 420px);
}

.login-card {
  padding: 40px 36px;
  border: 1px solid #d9e1eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(27, 31, 39, 0.04);
}

.login-header {
  margin-bottom: 36px;
  text-align: center;
}

.logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 14px;
  background: #ffe14d;
  color: #0c0e12;
  font-size: 18px;
  font-weight: 700;
}

.brand {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

h1 {
  margin: 0 0 28px;
  font-size: 28px;
  line-height: 1.4;
  text-align: center;
}

.login-field + .login-field {
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

input,
button {
  display: block;
  width: 100%;
  border-radius: 10px;
  font: inherit;
}

input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d9e1eb;
  background: #ffffff;
  color: inherit;
  font-size: 14px;
}

input::placeholder {
  color: #757575;
  opacity: 1;
}

button {
  height: 52px;
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: #0c0e12;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid #1f4fc4;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  body {
    padding-block: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-bottom));
  }

  .login-card {
    padding: 32px 20px;
  }

  .login-header {
    margin-bottom: 24px;
  }

  h1 {
    margin-bottom: 24px;
    font-size: 24px;
  }

  input {
    font-size: 16px;
  }
}
