@font-face {
  font-family: 'Ubuntu Mono';
  src: url('./fonts/UbuntuMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@keyframes inputGlow {
  from { box-shadow: 0 0 0 rgba(155, 48, 204, 0); }
  to { box-shadow: 0 0 15px rgba(155, 48, 204, 0.3); }
}

@keyframes toggleBounce {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.register-container {
  height: calc(100vh - 48px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Ubuntu Mono', monospace;
  background: #000000;
}

.register-box {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: #121212;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(155, 48, 204, 0.1);
}

.register-box h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgb(131, 131, 131);
  text-transform: uppercase;
  font-family: 'Ubuntu Mono', monospace;
  position: relative;
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-group label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9b30cc;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #121212;
  padding: 0 4px;
}

.form-group.focused label,
.form-group:has(.input-field:not(:placeholder-shown)) label {
  transform: translateY(-180%) scale(0.9);
  color: #b04dff;
}

.input-field {
  width: 100%;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: 'Ubuntu Mono', monospace;
  background: #1a1a1a;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field:hover {
  border-color: #9b30cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(155, 48, 204, 0.2);
}

.input-field:focus {
  animation: inputGlow 0.8s infinite alternate;
  border-color: #9b30cc;
  background-color: #191119;
  outline: none;
  box-shadow: 0 0 20px rgba(155, 48, 204, 0.25);
  /* transform removed per your comment */
}

.input-field::placeholder {
  color: #666;
}

.input-field:focus::placeholder {
  color: #444;
}

.password-container {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-container:hover .password-toggle,
.password-container:has(.input-field:focus) .password-toggle {
  background: #333;
  color: #fff;
  border-color: #444;
}

.register-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #9b30cc 0%, #662d91 100%);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Ubuntu Mono', monospace;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(155, 48, 204, 0.4);
}

.forgot-password {
  color: #9b30cc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: #b04dff;
  text-shadow: 0 0 8px rgba(155, 48, 204, 0.3);
}

.hidden {
  display: none;
}