* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0c0e;
  color: #e8e8ea;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 24px;
}

.wrap {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 0;
  object-fit: contain;
}

.mark {
  margin-top: 18px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f4f5;
}

.tag {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #9a9aa2;
}

.error-box {
  display: none;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
  color: #ff9b9b;
  font-size: 13px;
  text-align: left;
}

.form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: #b4b4bb;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid #2a2a30;
  background: #17181b;
  color: #e8e8ea;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input::placeholder {
  color: #55555c;
}

.field input:focus {
  border-color: #4a4a52;
  background: #1a1b1f;
}

.forgot {
  align-self: flex-end;
  margin-top: -6px;
  font-size: 13px;
  color: #9a9aa2;
  text-decoration: none;
}

.forgot:hover {
  color: #e8e8ea;
}

.btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid #2a2a30;
  background: #17181b;
  color: #e8e8ea;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: #1e1f23;
  border-color: #38383f;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  margin-top: 4px;
  background: #e8e8ea;
  color: #0b0c0e;
  border-color: #e8e8ea;
}

.btn.primary:hover {
  background: #d4d4d7;
  border-color: #d4d4d7;
}

.switch {
  margin-top: 24px;
  font-size: 14px;
  color: #9a9aa2;
}

.switch a {
  color: #e8e8ea;
  font-weight: 500;
  text-decoration: none;
}

.switch a:hover {
  text-decoration: underline;
}

.foot {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 400;
  color: #55555c;
}

@media (min-width: 640px) {
  .wrap {
    max-width: 400px;
  }

  .logo {
    width: 64px;
    height: 64px;
  }

  .mark {
    font-size: 34px;
  }
}

@media (max-width: 360px) {
  .logo {
    width: 48px;
    height: 48px;
  }

  .mark {
    font-size: 25px;
  }

  .tag {
    font-size: 13px;
  }

  .btn {
    padding: 13px 18px;
    font-size: 14px;
  }
}