* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: white;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #333333;
    display: flex;
    justify-content: center;
}

ul li a {
    display: block;
    color: white;
    padding: 14px 50px;
    text-decoration: none;
}

ul li a:hover {
    background-color: #111111;
}


.login-wrapper {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.welcome-heading {
    color: #88c6df;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 1px;
    text-wrap: nowrap;
    overflow: hidden;
    animation: typing 3s steps(50);
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.registerform {
    background: rgba(15, 23, 42, 0.75); 
    backdrop-filter: blur(8px);       
    border-radius: 20px;           
    padding: 2.5rem 2rem;
    color: white;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

button {
    cursor: pointer;
}

.registerform input[type="text"],
.registerform input[type="password"],
.registerform input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #1a202c;
    background: #f8fafc;
    margin-bottom: 1.2rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box; 
}

.registerform input[type="text"]:focus,
.registerform input[type="password"]:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.registerform label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e9eaeb;
    margin-bottom: 6px;
}

.registerform button[type="submit"] {
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.registerform button[type="submit"]:hover {
    background: #4f46e5;
}
.form-group:focus-within{
    transform: scale(1.05, 1.05);
}

.form-group input:focus::placeholder {
    animation: placeholder-animation 1s ease-in-out infinite alternate;
}


.error-message{
    text-align: center;
}

@keyframes typing{
    from{
        width: 0px;
    }
    to { 
        width: 100%; 
    }
}


@keyframes placeholder-animation {
  from {
    opacity: 0.4;
    transform: translateY(-50%); 
  }
  to {
    opacity: 1;
    transform: translateY(-90%); 
  }
}
section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(ellipse at top, #200310 0%, #0a0010 60%, #000000 100%);
    animation: animateBg 50s linear infinite;
}

@keyframes animateBg {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}
h1, h2, h3, p{
    font-family: 'Courier New', Courier, monospace;
}
span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1), 0 0 0 8px rgba(255,255,255,0.1), 0 0 20px rgba(255,255,255,0.1);
    animation: animate 3s linear infinite;
}

span::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes animate {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

span:nth-child(1) { top: 0; right: 0; left: initial; animation-delay: 0s; animation-duration: 1s; }
span:nth-child(2) { top: 0; right: 80px; left: initial; animation-delay: 0.2s; animation-duration: 3s; }
span:nth-child(3) { top: 80px; right: 0; left: initial; animation-delay: 0.4s; animation-duration: 2s; }
span:nth-child(4) { top: 0; right: 180px; left: initial; animation-delay: 0.6s; animation-duration: 1.5s; }
span:nth-child(5) { top: 0; right: 400px; left: initial; animation-delay: 0.8s; animation-duration: 2.5s; }
span:nth-child(6) { top: 0; right: 600px; left: initial; animation-delay: 1s; animation-duration: 3s; }
span:nth-child(7) { top: 300px; right: 0; left: initial; animation-delay: 1.2s; animation-duration: 1.75s; }
span:nth-child(8) { top: 0; right: 700px; left: initial; animation-delay: 1.4s; animation-duration: 1.25s; }
span:nth-child(9) { top: 0; right: 450px; left: initial; animation-delay: 2.75s; animation-duration: 2.75s; }


nav {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .login-wrapper {
        width: 90%;
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    ul {
        flex-direction: column;
        align-items: center;
    }

    ul li a {
        padding: 10px 20px;
        text-align: center;
    }

    .welcome-heading {
        font-size: 1.5rem;
        text-align: center;
        letter-spacing: 0.5px;
        animation: none; 
        width: 100%;
    }

    .registerform {
        max-width: 100%;
        padding: 1.8rem 1.2rem;
        margin: 0 10px;
    }
}