html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  overflow: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='25' viewBox='0 0 20 25'%3E%3Cpath d='M 1 1 L 1 18.5 L 5.5 14 L 9.5 22 L 12.5 20.5 L 8.5 12.5 L 14 12.5 L 1 1' fill='%23ff6b9e' stroke='%23ff6b9e' stroke-width='1'/%3E%3C/svg%3E") 1 1, auto;
}

.container {
  position: relative;
  z-index: 2;
  text-align: center;
  transform: translateY(-10vh);
  opacity: 0;
}

h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 8rem;
  color: #ff8ab3;
  text-transform: none;
  letter-spacing: 4px;
  margin: 0;
  text-shadow: 0 0 20px rgba(255, 107, 158, 0.5);
  white-space: nowrap;
  transition: color 0.3s ease;
  cursor: default;
}

h1:hover {
  color: #fd65b1;
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.subtitle {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  margin-top: 1rem;
  background: linear-gradient(90deg, 
    #a0a0a0 0%,
    #c0c0c0 25%,
    #a0a0a0 50%,
    #ff8ab3 75%,
    #a0a0a0 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
  opacity: 0.8;
  transition: all 0.5s ease;
  font-weight: 700;
}

.subtitle:hover {
  opacity: 1;
}

.subtitle.hidden {
  opacity: 0;
  transform: translateY(20px);
}

.main-content {
  transition: all 0.5s ease;
}

.main-content.shifted {
  transform: translateY(-15vh);
}

.main-content .button {
  transition: all 0.5s ease;
}

.main-content.shifted .button {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.auth-container {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, 30px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  background: rgba(30, 30, 30, 0.8);
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid #ff8ab3;
  box-shadow: 0 0 20px rgba(255, 107, 158, 0.2);
  backdrop-filter: blur(10px);
  width: 90%;
  max-width: 400px;
  z-index: 2;
}

.auth-container.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tabs {
  display: flex;
  margin-bottom: 20px;
  cursor: pointer;
  border-bottom: 2px solid #ff8ab3;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  color: #8892b0;
  transition: all 0.3s ease;
  font-weight: 700;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.tab.active {
  color: #ff8ab3;
  box-shadow: 0 0 10px rgba(255, 107, 158, 0.3);
  border-bottom: 2px solid #ff8ab3
}

.form-container > form {
  display: none;
}

.form-container > form.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

label {
  display: block;
  margin-top: 15px;
  color: #8892b0;
  font-size: 0.85rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid #ff8ab3;
  border-radius: 4px;
  color: #ff8ab3;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

input:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(255, 107, 158, 0.3);
  border-color: #ff8ab3;
}

.status-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  display: none;
}

.status-message.error {
  display: block;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff0000;
  color: #ff0000;
}

.status-message.success {
  display: block;
  background: rgba(255, 61, 223, 0.1);
  border: 1px solid #ff5bb5;
  color: #ff5bb5;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
  z-index: 1;
}

.star.active {
  transform: scale(3);
  box-shadow: 0 0 20px #ff8ab3, 0 0 40px #ff8ab3;
  z-index: 3;
}

.button {
  margin-top: 2.5rem;
  padding: 0.8rem 2.5rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ff8ab3;
  background: transparent;
  border: 2px solid #ff8ab3;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.1s ease;
  animation: buttonPulse 2s infinite;
  user-select: none;
}

.button:hover {
  color: #1a1a1a;
}

.button:active {
  transform: scale(0.95);
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ff8ab3;
  transition: transform 0.5s ease;
  transform: skewX(-20deg);
  z-index: -1;
}

.button:hover::before {
  transform: skewX(-20deg) translateX(100%);
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ff8ab3;
  transition: transform 0.5s ease 0.1s;
  transform: skewX(-20deg);
  z-index: -1;
}

.button:hover::after {
  transform: skewX(-20deg) translateX(100%);
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 158, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 158, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 158, 0);
  }
}

footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: #8892b0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  user-select: none;
}

footer a {
  color: #ff8ab3;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}