/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Main container with animated rainbow border */
.container {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    max-width: 85%;
    width: 100%;
    position: relative;
    animation: fadeIn 2s ease-in-out;
}

/* Rainbow border animation */
.container::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 15px; /* Slightly larger than container for better effect */
    z-index: -1;
    background: linear-gradient(270deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 300% 300%;
    animation: moveGradient 4s linear infinite;
    filter: blur(5px); /* Slightly blur the rainbow effect */
}

/* Logo container to position the rainbow background */
.logo-container {
    max-width: 40%;
    position: relative;
    display: inline-block;
    padding: 10px; /* Optional padding to make the effect more visible */
}

/* Logo styling with curved border */
.logo {
    max-width: 35%;
    height: auto;
    border-radius: 20%; /* Matches rainbow effect */
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow */
    position: relative;
    z-index: 2; /* Ensures logo stays above the rainbow effect */
}
.title {
    max-width: 50%;
    height: auto;
    margin-bottom: 20px;

    position: relative;
    z-index: 2; /* Ensures logo stays above the rainbow effect */
}

/* Rainbow background behind the logo */
.logo-container:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Explicit width */
    height: 100%; /* Explicit height */
    border-radius: 20%; /* Same as logo */
    z-index: 1; /* Behind logo, in front of main container */
    background: linear-gradient(270deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 300% 300%;
    animation: moveGradient 4s linear infinite;
    filter: blur(4px); /* Blurred rainbow effect */
}
/* Header styles */
header h1 {
    font-size: 2.5em;
    color: #4a90e2;
    margin-bottom: 10px;
    animation: bounceIn 1s;
}

header p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

/* Signup section */
.signup-section h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.signup-section p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

/* Responsive Form Embed */
.form-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.form-container iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Social Icons */
.social-icons {
    margin-top: 30px;
}

.social-icons a {
    color: #4a90e2;
    margin: 0 10px;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #357ab8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Rainbow rotating animation */
/* Keyframes for moving the gradient */
@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .container {
        padding: 30px;
    }

    .logo {
        max-width: 120px;
    }

    header h1 {
        font-size: 2em;
    }

    header p, .signup-section p {
        font-size: 1em;
    }

    .form-container iframe {
        height: 500px;
    }
}
