/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background-color: #050505;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MAIN BACKGROUND WRAPPER */
.gradient-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

/* SPHERES → EZCONNECT COLORS */
.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.sphere-1 {
    width: 40vw; height: 40vw;
    background: linear-gradient(40deg, rgba(36,105,178,0.75), rgba(37,171,169,0.45));
    top: -10%; left: -10%;
    animation: float-1 15s ease-in-out infinite alternate;
}

.sphere-2 {
    width: 45vw; height: 45vw;
    background: linear-gradient(240deg, rgba(37,171,169,0.75), rgba(36,105,178,0.45));
    bottom: -20%; right: -10%;
    animation: float-2 18s ease-in-out infinite alternate;
}

.sphere-3 {
    width: 30vw; height: 30vw;
    background: linear-gradient(120deg, rgba(36,105,178,0.45), rgba(37,171,169,0.30));
    top: 55%; left: 20%;
    animation: float-3 20s ease-in-out infinite alternate;
}

/* FLOAT ANIMATIONS */
@keyframes float-1 {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(10%,10%) scale(1.1); }
}
@keyframes float-2 {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(-10%,-5%) scale(1.15); }
}
@keyframes float-3 {
    from { transform: translate(0,0) scale(1); opacity: 0.3; }
    to   { transform: translate(-5%,10%) scale(1.05); opacity: 0.6; }
}

/* NOISE OVERLAY */
.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    z-index: 5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* GRID OVERLAY */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image:
      linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
    z-index: 2;
}

/* CENTER GLOW */
.glow {
    position: absolute;
    width: 40vw;
    height: 40vh;
    background: radial-gradient(circle, rgba(36,105,178,0.20), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: pulse 8s infinite alternate;
    filter: blur(30px);
}

@keyframes pulse {
    from { opacity: 0.25; transform: translate(-50%, -50%) scale(0.9); }
    to   { opacity: 0.65; transform: translate(-50%, -50%) scale(1.1); }
}

/* PARTICLES */
.particles-container {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
}

/* CONTENT CENTERED */
.content-container {
    z-index: 10;
    text-align: center;
    color: white;
}

.logo {
    width: 160px;
    margin-bottom: 25px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #d9f3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    max-width: 520px;
    margin: auto;
    font-size: 1.15rem;
    opacity: 0.85;
}
/* ----- FORM CARD ----- */
.form-card {
    width: 420px;
    max-width: 95%;
    padding: 30px;
    margin-top: 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    text-align: left;
    color: #fff;
}

.form-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
}

/* ----- FORM INPUTS ----- */
form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    margin-bottom: 18px;
    font-size: 15px;
    background: rgba(255,255,255,0.9);
    outline: none;
}

/* ----- BUTTON ----- */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(120deg, #2469b2, #25aba9);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.content-container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;       /* Center items horizontally */
    justify-content: center;   /* Center vertically (optional) */
}
.logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}
/* ============================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================ */

/* Allow page scrolling on mobile */
body {
    height: auto;
    overflow-y: auto;
    padding: 40px 0;
}

/* Ensure background covers scrolling height */
.gradient-background {
    height: 100%;
    min-height: 100vh;
}

/* Logo responsive */
.logo {
    width: 140px;
    max-width: 65%;
    margin-bottom: 20px;
}

/* Content spacing for mobile */
.content-container {
    padding: 20px;
    margin-top: 10px;
}

/* Make form card responsive */
.form-card {
    width: 95%;
    padding: 22px;
    margin-top: 10px;
    border-radius: 14px;
}

/* Form title smaller on phones */
.form-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Inputs adjust for small screens */
form input,
form select,
form textarea {
    font-size: 14px;
    padding: 11px;
    border-radius: 8px;
}

/* Button responsive */
.submit-btn {
    padding: 12px;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* ============================
   VERY SMALL PHONE SCREENS
   ============================ */
@media (max-width: 420px) {

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .logo {
        width: 130px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .form-card {
        padding: 18px;
    }
    
    form label {
        font-size: 13px;
    }
}

/* ============================
   ULTRA SMALL PHONES (iPhone SE, Galaxy Mini)
   ============================ */
@media (max-width: 350px) {

    .logo {
        width: 100px;
    }

    .form-card {
        padding: 16px;
    }

    .submit-btn {
        font-size: 0.85rem;
        padding: 10px;
    }
}
/* ============================
   DESKTOP / LAPTOP FIX
   ============================ */
@media (min-width: 768px) {

    /* Center content vertically without stretching */
    body {
        height: 100vh;
        overflow-y: auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 40px;
    }

    /* Limit max width of the form card */
    .form-card {
        width: 680px !important;    /* perfect width */
        max-width: 880px !important;
        margin-top: 20px;
        padding: 30px;
    }

    /* Center everything */
    .content-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        margin-top: 0px;
    }

    /* Logo size for desktop */
    .logo {
        width: 180px;
        margin-bottom: 20px;
    }

    /* Reduce input widths */
    form input,
    form select,
    form textarea {
        width: 100%;
    }
}
/* ============================
   MOBILE RESPONSIVE BACKGROUND FIX
   ============================ */
@media (max-width: 768px) {

    /* Make spheres smaller on mobile */
    .sphere-1 {
        width: 65vw;
        height: 65vw;
        top: -20%;
        left: -20%;
    }

    .sphere-2 {
        width: 70vw;
        height: 70vw;
        bottom: -30%;
        right: -20%;
    }

    .sphere-3 {
        width: 55vw;
        height: 55vw;
        top: 60%;
        left: 10%;
    }

    /* Reduce blur for cleaner mobile look */
    .gradient-sphere {
        filter: blur(40px);
    }

    /* Adjust glow center & size */
    .glow {
        width: 80vw;
        height: 40vh;
        filter: blur(45px);
        opacity: 0.4;
    }

    /* Ensure grid pattern scales */
    .grid-overlay {
        background-size: 28px 28px;
    }

    /* Noise overlay lighter (mobile clarity) */
    .noise-overlay {
        opacity: 0.03;
    }
    
    .content-container{
         margin-top: 0px;
    }
}

/* ============================
   EXTRA TINY SCREENS
   ============================ */
@media (max-width: 400px) {

    .sphere-1,
    .sphere-2,
    .sphere-3 {
        filter: blur(35px);
    }

    .sphere-1 {
        width: 80vw;
        height: 80vw;
        top: -25%;
        left: -25%;
    }

    .sphere-2 {
        width: 85vw;
        height: 85vw;
        bottom: -40%;
        right: -25%;
    }

    .sphere-3 {
        width: 65vw;
        height: 65vw;
        top: 65%;
        left: 5%;
    }

    .glow {
        width: 90vw;
        height: 45vh;
        opacity: 0.35;
    }
}
@media (prefers-color-scheme: dark) {
    .submit-btn {
        background: linear-gradient(120deg, #2fa4f5, #2bd4c4) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255,255,255,0.35);
        box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
    }
}
