@import url('https://fonts.googleapis.com/css2?family=Podkova:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&family=Jersey+15&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');

body {
    font-family: "Podkova", serif;
    font-weight: bold;
    background-image: url(background.gif);
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

header {
    font-family: "Jersey 10", serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

header img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.glowing-title {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 30px;
  text-align: center;
  background: linear-gradient(
    90deg,
    #ff6600,
    #ffcc00,
    #ff9933,
    #ffcc00,
    #ff6600
  );
  background-size: 300% 300%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: 
    gradientGlow 4s ease infinite,
    pulseGlow 2s ease infinite alternate;
}

@keyframes gradientGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  from {
    text-shadow: 
      0 0 5px rgba(255, 102, 0, 0.5),
      0 0 10px rgba(255, 153, 51, 0.3);
  }
  to {
    text-shadow: 
      0 0 15px rgba(255, 204, 0, 0.8),
      0 0 25px rgba(255, 153, 51, 0.6),
      0 0 35px rgba(255, 102, 0, 0.4);
  }
}

.container {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(40px);
    border: 2px solid black;
    padding: 20px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    margin-top: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: float3D 8s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes float3D {
  0%, 100% {
    transform: 
      translateY(0) 
      rotateX(0deg) 
      rotateY(0deg);
  }
  25% {
    transform: 
      translateY(-15px) 
      rotateX(2deg) 
      rotateY(2deg);
  }
  50% {
    transform: 
      translateY(-25px) 
      rotateX(-1deg) 
      rotateY(3deg);
  }
  75% {
    transform: 
      translateY(-10px) 
      rotateX(3deg) 
      rotateY(-2deg);
  }
}

.container h1 {
    margin-bottom: 20px;
    margin-top: 0;
    color: white;
}

.form-group {
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    margin-left: 28px;
    text-align: left;
    color: white;
}

.form-group input {
    width: 260px;
    height: 45px;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid black;
    border-radius: 10px;
    margin-bottom: 10px;
    color: white;
    font-family: "Podkova", serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgb(255, 102, 0);
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.5);
}

.form-group.success input {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.form-group.error input {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    margin-left: 28px;
    text-align: left;
    display: none;
    font-weight: normal;
}

.form-group.error .error-message {
    display: block;
}

.btn {
    width: 100px;
    height: 50px;
    padding: 10px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 5px;
    font-size: 17px;
    font-family: "Podkova", serif;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(to right, rgb(255, 102, 0), rgb(251, 255, 0));
    transform: scale(1.05);
    color: black;
}

.btn:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: white;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.alert.error {
    background-color: rgba(220, 53, 69, 0.9);
}

.alert.success {
    background-color: rgba(40, 167, 69, 0.9);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .container {
        width: 90%;
        margin-top: 80px;
    }
    
    .form-group input {
        width: 100%;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    header img {
        width: 60px;
        height: 60px;
    }
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}