:root {
  --green: #75b843;
  --deep: #214f35;
  --text: #587060;
  --line: #c7d9c1;
}
* {
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 5% 15%, #dcedc8 0 80px, transparent 81px),
    radial-gradient(circle at 95% 82%, #e8f4da 0 150px, transparent 151px),
    #f7faf4;
  color: var(--deep);
  font-family: "Noto Sans JP", sans-serif;
  display: flex;
  flex-direction: column;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  background: var(--deep);
  color: #fff;
  padding: 8px 14px;
  z-index: 1;
}
.skip-link:focus {
  top: 12px;
}
.header,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header {
  min-height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--deep);
  font:
    700 30px/1 "DM Sans",
    sans-serif;
  letter-spacing: -1.5px;
  text-decoration: none;
}
.brand svg {
  height: 38px;
  width: 38px;
}
.header p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}
.header a:not(.brand),
.label-row a,
.signup-prompt a {
  color: var(--green);
  font-weight: 700;
}
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 20px 55px;
}
.login-card {
  width: min(100%, 510px);
  padding: 38px 52px 34px;
  background: #fff;
  border: 1px solid #e2ecdd;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 55px rgba(35, 77, 48, 0.11);
}
.mascot {
  width: 76px;
  height: 70px;
  margin: -67px auto 4px;
  background: #f2f9ea;
  border-radius: 50%;
  padding: 4px;
}
.mascot svg {
  width: 100%;
  height: 100%;
}
.eyebrow {
  margin: 10px 0 11px;
  color: var(--green);
  font:
    700 10px/1 "DM Sans",
    sans-serif;
  letter-spacing: 1.5px;
}
.login-card h1 {
  margin: 0;
  font-size: 33px;
  line-height: 1.4;
  letter-spacing: -1.8px;
}
.lead {
  margin: 12px 0 25px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}
form {
  text-align: left;
}
.field {
  margin-bottom: 17px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.label-row a {
  font-size: 11px;
  text-decoration: none;
}
label {
  font-size: 13px;
  font-weight: 700;
}
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--deep);
  font:
    400 16px "DM Sans",
    sans-serif;
  outline: none;
}
input::placeholder {
  color: #a9b7aa;
}
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px #e5f4d9;
}
.remember {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 1px 0 20px;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
button {
  width: 100%;
  padding: 17px 20px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font:
    700 15px "Noto Sans JP",
    sans-serif;
  transition: 0.2s;
}
button:hover {
  background: #64a833;
  transform: translateY(-2px);
}
.signup-prompt {
  margin: 22px 0 0;
  padding-top: 19px;
  border-top: 1px solid #e4ece0;
  color: #74877a;
  font-size: 12px;
}
.brand img {
  height: 50px;
}
.signup-prompt a {
  text-decoration: none;
}
footer {
  padding-bottom: 18px;
  color: #819184;
  font-size: 11px;
}
footer a {
  color: var(--text);
  text-decoration: none;
}
@media (max-width: 560px) {
  .header,
  footer {
    width: calc(100% - 32px);
  }
  .header {
    min-height: 68px;
  }
  .header p {
    font-size: 0;
  }
  .header p:before {
    content: "はじめての方？ ";
    font-size: 11px;
  }
  .header p a {
    font-size: 12px;
  }
  .brand {
    font-size: 27px;
  }
  .brand svg {
    width: 34px;
    height: 34px;
  }
  main {
    padding: 55px 16px 42px;
  }
  .login-card {
    padding: 34px 25px 28px;
    border-radius: 16px;
  }
  .login-card h1 {
    font-size: 30px;
  }
  .mascot {
    margin-top: -63px;
  }
}
