body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

/* Animated background particles */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: particle-float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes particle-float {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 10%;
    }

    50% {
        background-position: 100% 100%, 0% 0%, 30% 70%, 20% 90%;
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
}
    
/* Floating animation for container */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    animation: form-entrance 0.6s ease-out;
}


@keyframes form-entrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated border glow */
.form-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffffff, #0088ff, #0022ff, #4400ff, #000000);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 2s ease;
    animation: border-rotate 4s linear infinite;
    background-size: 300% 300%;
}

@keyframes border-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.form-wrapper:hover::before {
    opacity: 0.6;
}

h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #00f5ff, 0 0 20px #00f5ff, 0 0 30px #00f5ff;
    }

    to {
        text-shadow: 0 0 20px #00f5ff, 0 0 30px #00f5ff, 0 0 40px #00f5ff;
    }
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.form-group:focus-within label {
    color: #00f5ff;
    transform: translateX(5px);
}

input,
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00f5ff;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
    transform: translateY(-2px);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Animated input underline */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f5ff, #0004ff);
    transition: width 0.4s ease;
}

.form-group:focus-within::after {
    width: 100%;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00f5ff, #1900ff);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.4);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.6);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Floating animation for container */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.container {
    animation: float 6s ease-in-out infinite;
}

/* Status message */
.status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    min-height: 44px;
    line-height: 1.4;
    opacity: 0;
    transition: none; /* No transition by default */
    transition: opacity 0.3s ease;
    color: #00ff88;
}

.status-message.show {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.status-message.success {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Error state */
.status-message.error {
    background: rgba(186, 85, 255, 0.2);
    border: 1px solid #ba55ff;
    color: #ba55ff;
    box-shadow: 0 0 20px rgba(186, 85, 255, 0.3);
}