@font-face {
  font-family: 'Open Sauce';
  src: url('../fonts/open-sauce.one-regular.ttf') format('truetype');
  font-weight: 400;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Open Sauce', sans-serif;
}

body {
  background-color: #202020;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
}

.top-link {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 14px;
  color: #aaa;
}

.top-link a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.top-link a:hover {
  text-decoration: underline;
}

.auth-container {
  width: 350px;
  max-width: 400px;
}

.auth-box {
  padding: 40px 0;
}

.auth-box h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-box p {
  color: #a1a1a1;
  margin-bottom: 24px;
  font-weight: 300;
}

form {
  display: flex;
  flex-direction: column;
}

input {
  padding: 8px;
  border: 1px solid #323232;
  background-color: #252525;
  color: white;
  font-weight: 400;
  outline: none;
  border-radius: 0;
}

input:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

input:last-of-type {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

input + input {
  border-top: none;
}

input:focus {
  outline: none;
  box-shadow: none;
}

input::placeholder {
  color: #777;
}

.link {
  font-size: 14px;
  margin-top: 8px;
  display: inline-block;
  color: #ccc;
  text-decoration: none;
  text-align: center;
}

button {
  background-color: CCCCCC;
  color: #000;
  padding: 8px;
  border: 1px solid #CCCCCC;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 300;
  margin-top: 16px;
  transition: background 0.3s ease;
}

.form-message {
  font-size: 14px;
  color: red;
  margin-top: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.form-message.visible {
  height: auto;
  margin-top: 10px;
}
