/* GLOBAL */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f1e7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* MAIN CONTAINER */
.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 35px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* WAVY TOP SECTION */
.top-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 160%;
    height: 200px;
    left: -30%;
}

.wave.dark {
    top: -10px;
    z-index: 3;
}

.wave.purple {
    top: 38px;   /* lower so it becomes visible */
    opacity: 0.9;
    z-index: 2;
}
/* DARK WAVE ANIMATION */
.dark-path {
    fill: #3A3C44;
    animation: darkFlow 6s ease-in-out infinite alternate;
}

@keyframes darkFlow {
    0% {
        d: path("M0,0 L500,0 L500,75 C360,20 240,130 80,70 C20,55 0,50 0,50 Z");
    }
    50% {
        d: path("M0,0 L500,0 L500,85 C350,40 260,120 100,80 C40,60 0,55 0,55 Z");
    }
    100% {
        d: path("M0,0 L500,0 L500,70 C380,30 220,140 70,90 C10,65 0,60 0,60 Z");
    }
}

/* PURPLE WAVE ANIMATION */
.purple-path {
    fill: #B57BFF;
    animation: purpleFlow 7s ease-in-out infinite alternate;
}

@keyframes purpleFlow {
    0% {
        d: path("M0,0 L500,0 L500,110 C380,180 230,60 90,130 C20,160 0,120 0,120 Z");
    }
    50% {
        d: path("M0,0 L500,0 L500,125 C360,190 260,70 120,140 C30,170 0,130 0,130 Z");
    }
    100% {
        d: path("M0,0 L500,0 L500,100 C400,170 200,55 70,120 C30,150 0,100 0,100 Z");
    }
}


/* TITLE */
.title {
    margin-top: 135px;
    font-size: 32px;
    color: #222;
    font-weight: 700;
}

/* FORM */
.form {
    margin-top: 20px;
}

/* LABEL */
label {
    font-size: 14px;
    color: #707070;
}

/* INPUT */
input {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 15px;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    background: transparent;
}

/* PASSWORD FIELD ICON */
.input-group {
    position: relative;
}

.eye-icon {
    position: absolute;
    right: 5px;
    top: 10px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
}

/* FORGOT PASSWORD */
.forgot {
    text-align: right;
    margin-top: -15px;
    margin-bottom: 20px;
}

.forgot a {
    color: #707070;
    font-size: 13px;
    text-decoration: none;
}

/* BUTTON */
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: #3b3d45;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #4b4e57;
}

/* REGISTER LINK */
.register-text {
    text-align: center;
    margin-top: 25px;
    color: #555;
}

.register-text a {
    color: #6a1df2;
    font-weight: 600;
    text-decoration: none;
}
.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 35px;

    /* flowing gradient */
    background: linear-gradient(120deg, #2f3138, #6d28ff, #b784ff);
    background-size: 200% 200%;

    color: #fff;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    outline: none;

    /* smooth animation */
    transition: 0.4s ease;
    animation: flowGradient 4s ease infinite;

    /* soft glow */
    box-shadow: 0 4px 15px rgba(109, 40, 255, 0.35);
}

/* Hover state (brighter & slightly bigger) */
.login-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 22px rgba(109, 40, 255, 0.45);
}

/* Flow animation */
@keyframes flowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
