body {
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; 
    background: linear-gradient(135deg, #6a11cb, #2575fc); 
    animation: fadeIn 1s ease-in-out; 
    position: relative; 
}

.container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); 
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    position: relative;
    opacity: 0; 
    transform: scale(0.9); 
    animation: scaleUp 0.6s forwards; 
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

h2 {
    margin-top: 0;
    color: #007bff;
    text-align: center; 
    font-size: 2rem; 
    font-weight: 700; 
}

form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    outline: none;
}

button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

button:active {
    background-color: #004494;
    transform: scale(1);
}

.link-container {
    margin-top: 1rem;
    text-align: center;
}

.link-container a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500; 
}

.link-container a:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: #fff;
    font-size: 0.75rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}


.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #001f3f, #003366, #004080, #00509e, #3e7194, #4695bc);
    background-size: 600% 600%;
    animation: gradientAnimation 30s ease infinite; 
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-elements .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.978);
    animation: floatAnimation 15s linear infinite, colorChange 8s ease-in-out infinite; 
}

.circle:nth-child(1) {
    width: 50px;
    height: 50px;
    top: 10%;
    left: 20%;
    animation-duration: 12s, 7s; 
}

.circle:nth-child(2) {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 50%;
    animation-duration: 15s, 8s; 
}

.circle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 70%;
    animation-duration: 20s, 6s; 
}

.circle:nth-child(4) {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 30%;
    animation-duration: 18s, 9s;
}

.circle:nth-child(5) {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 80%;
    animation-duration: 16s, 10s;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-100px) translateX(100px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes colorChange {
    0% {
        background: rgba(255, 255, 255, 0.5);
    }
    25% {
        background: rgba(240, 240, 240, 0.5); 
    }
    50% {
        background: rgba(220, 220, 220, 0.5); 
    }
    75% {
        background: rgba(200, 200, 200, 0.5); 
    }
    100% {
        background: rgba(255, 255, 255, 0.5); 
    }
}
