* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: white;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

nav {
    position: relative;
    z-index: 1;
}

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 40px;
    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;
    letter-spacing: 1px;
    text-align: center;
}

.loginform {
    background: rgba(15, 23, 42, 0.75); 
    backdrop-filter: blur(8px);
    border-radius: 20px;           
    padding: 2.5rem 2rem;
    color: white;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    margin: auto; 
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

.form-group {
    width: 100%;
    display: block;
    margin-bottom: 0.5rem;
}

.loginform input[type="text"],
.loginform input[type="email"],
.loginform textarea {
    width: 100%;
    display: block;
    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;
}

.loginform textarea {
    resize: vertical;
    font-family: inherit;
}

/* Input Focus Glow Effect */
.loginform input[type="text"]:focus,
.loginform input[type="email"]:focus,
.loginform textarea:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.loginform label {
    display: block;
    width: 100%;       
    text-align: left;  
    font-size: 0.9rem;
    font-weight: 600;
    color: #e9eaeb;
    padding: 5px 0;
}

.submit-btn {
    width: 100%;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 0.5px;
}

.submit-btn:hover {
    background: #4f46e5;
}

.submit-btn:active {
    transform: scale(0.98);
}

.form-group:focus-within {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.error-message {
    text-align: center;
    color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.success-message {
    text-align: center;
    color: #51cf66 !important;
    background: rgba(81, 207, 102, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(81, 207, 102, 0.3);
}

h1, h2, h3, p {
    font-family: 'Courier New', Courier, monospace;
}

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);
    }
}

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; }


.discord-btn {
    display: inline-block;
    width: 100%;
    background: #5865F2; 
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
}

.discord-btn:hover {
    background: #4752C4;
    color: #ffffff;
}

.discord-btn:active {
    transform: scale(0.98);
}
.discord-img {
    width: 60px;
    height: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.discord-img:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.discord-img:active {
    transform: scale(0.95);
}

.loginform select {
    width: 100%;
    display: block;
    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;
    cursor: pointer;
}

.loginform select:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

@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;
    }

    .loginform {
        max-width: 100%;
        padding: 1.8rem 1.2rem;
        margin: 20px 10px;
    }

    .loginform input[type="text"],
    .loginform input[type="email"],
    .loginform select,
    .loginform textarea {
        font-size: 16px;
    }
}