:root {
  --primary: #304a84;
  --bg: #0f1020;
  --glass: rgba(255,255,255,0.12);
}

* {
  box-sizing: border-box;
  font-family: 'Chakra Petch', sans-serif;
}

body {
  margin: 0;
  height: 100vh;
  background: linear-gradient(135deg, #1b1d4f, #0f1020);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 360px;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  place-items: center;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  border: 2px solid #555;
  width: 100%;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all .5s ease;
  grid-area: 1/1/1/1; /* ensures all cards occupy the same cell */
}

.card.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

.field {
  position: relative;
  margin-bottom: 18px;
}

.field input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.field label {
  position: absolute;
  top: 50%;
  left: 12px;
  color: #ccc;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  transition: .3s;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: -6px;
  font-size: 12px;
  color: var(--primary);
}

button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #4268b9;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px #304a84;
}

.links {
  margin-top: 15px;
  text-align: center;
}

.links span {
  color: #aaa;
  cursor: pointer;
  font-size: 13px;
  margin: 0 5px;
}

.links span:hover {
  color: #fff;
}