@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;700&display=swap');
@font-face { font-family: 'DaydreamWeb'; src: url('/src/styles/Daydream DEMO.otf') format('opentype');}

* {
  box-sizing: border-box;
}

:root {
  --bg: #6f0083;
  --card-border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.78);
  --muted-2: rgba(255, 255, 255, 0.6);
  --accent: #6f057a;
  --accent-2: #61056b;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  --shadow-inset: inset 0 -0.25vw rgba(97, 5, 107, 0.85);
  --focus: rgba(0, 204, 255, 0.45);
}

body {
  font-family: 'Pixelify Sans', sans-serif;
  background: linear-gradient(180deg, #f0f4f8 0%, #dbeafe 1%, #3b82f6 30%, #1d4ed8 100%);
  background-attachment: fixed;
  color: white;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.background {
  position: fixed;
  width: 250%;
  height: 250%;
  top: 50%;
  left: 50%;
  z-index: -1;
  background-size: 550px;
  background-position: -100px -100px;
  background-image: url("https://izumiihd.github.io/pixelitcdn/assets/background.png");
  transform: translate(-50%, -50%) rotate(15deg);
  opacity: 0.1;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.register-wrapper {
  display: flex;
  align-items: center;
  gap: 200px;
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
}

.animated-blook {
  width: 320px;
  height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.3));
  animation: cleanFloat 4s ease-in-out infinite;
  transition: filter 0.3s ease, transform 0.2s ease;
}

.animated-blook:hover {
  transform: translateY(-5px);
}

nav {
  display: flex;
  flex-direction: row;
  background: #6f057a;
  box-shadow: inset 0 -0.265vw #5a0463, 3px 3px 15px rgba(0, 0, 0, 0.6);
  width: 100vw;
  border-radius: 10px;
  padding: 1rem;
  box-sizing: border-box; 
}

.loginRedirect {
  text-align: right;
  flex-direction: row;
  flex: 1;
  gap: 1rem;
}

.loginRedirect a {
  color: white;
  font-size: 28px;
  text-decoration: none;
}

.loginRedirect {
  text-decoration: underline;
  color: white; 
}

h1 {
  font-size: 2.0rem;
  margin: 0;
}

@keyframes cleanFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.register-form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 440px;
  height: 460px;
  color: white;
  box-sizing: border-box;
  padding: 10px 20px;
  font-size: 18px;
  border-radius: var(--radius);
  background: rgba(94, 4, 110, 0.22);
  box-shadow: inset 0 -0.225vw rgb(58 49 59 / 18%), 3px 3px 15px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}

.register-form-container h1 {
  font-size: 44px;
  margin-bottom: 20px;
  font-family: 'DaydreamWeb';
}

.register-form-container input {
  width: 100%;
  background: transparent;
  padding: 10px 14px;
  font-weight: bold;
  text-align: center;
  border-radius: 10px;
  border: 3px solid white;
  color: white;
  font-size: 24px;
  font-family: "Pixelify Sans";
  outline: none;
  margin-bottom: 10px;
}

.register-form-container button {
  width: auto;
  font-size: 20px;
  border-radius: 5px;
  background: rgb(94 4 110 / 0%);  
  color: white;
  border: 2px solid rgba(94, 4, 110, 0.22);
  padding: 15px 30px;
  cursor: pointer;
  font-family: 'Pixelify Sans', sans-serif;
  transition: background-color 0.3s ease;
}

.register-form-container button:hover {
  background-color: rgb(105 127 218);
}

.register-form-container button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.register-error {
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/* Used for banned/disabled account messages */
.ban-error {
  color: #ff4d4d;
  font-weight: 800;
  text-align: center;
}


.register-info {
  margin-top: 30px;
}

.terms {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-size: 1rem;
  font-weight: bold;
}

.accessKeyDiscord {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  color: white;
  text-decoration: underline;
}

.terms a {
  color: white;
  text-decoration: underline;
}

.tosaccept {
  color: rgb(197, 196, 196);
  font-size: 16px;
  text-align: center;
  display: block;
}

.tos-link {
  color: rgb(197, 196, 196);
  text-decoration: underline; 
  cursor: pointer;
}

.tos-link:hover {
  color: rgb(230, 230, 230);
}

@media (max-width: 768px) {
  body, html {
    overflow-x: hidden;
  }

  .register-wrapper {
    flex-direction: column;
    gap: 40px; 
    padding: 20px;
    align-items: center;
  }

  .animated-blook {
    width: 180px; 
    height: 180px;
  }

  .register-form-container {
    width: 380px; 
    max-width: 400px;
    height: auto;
    padding: 25px 20px;
    box-sizing: border-box; 
  }

  .accessKeyDiscord {
    display: none;
  }

  .terms {
    display: none; 
  }
}