* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f1f1f;
  font-family: "Courier New", Courier, monospace;

  background-color: #f6f5f1;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size:
    6px 6px,
    100% 34px;
}

.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.hero {
  width: min(720px, 100%);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 96px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 0.9;
}

h1 span {
  display: block;
  margin-top: 4px;

  font-family: "Caveat", cursive;
  font-size: clamp(32px, 8vw, 52px);
  letter-spacing: 0;
  text-transform: lowercase;
  font-weight: 400;
  color: #9b1d1d;
}

.subtitle {
  margin: 42px auto 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(31, 31, 31, 0.68);
}

.login-card {
  width: min(360px, 100%);
  margin: 52px auto 0;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.55);
}

input {
  width: 100%;
  border: 1px solid rgba(31, 31, 31, 0.16);
  background: rgba(255, 255, 255, 0.35);
  padding: 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

input:focus {
  border-color: rgba(31, 31, 31, 0.4);
}

button {
  background: rgba(246, 245, 241, 0.72);
  color: #1f1f1f;
  border: 1px solid rgba(31, 31, 31, 0.16);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

button:hover {
  background: rgba(31, 31, 31, 0.08);
}

.home-footer {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: rgba(31, 31, 31, 0.34);
}

.auth-form {
  width: min(420px, 100%);
  margin: 52px auto 0;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  flex: 1;
}

.tab.active {
  background: rgba(31, 31, 31, 0.08);
}

.hidden {
  display: none !important;
}

.name-field {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.28s ease;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.name-field.open {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.forgot-password-btn {
  border: none;
  background: transparent;
  padding: 0;
  text-align: right;

  font-size: 11px;
  color: rgba(31, 31, 31, 0.52);
}

.forgot-password-btn:hover {
  background: transparent;
  color: #1f1f1f;
}
