@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #F4A460, #189DD8);
    background-size: 400% 400%;
    animation: gradient-animation 8s ease infinite;
    position: relative;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.form-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fade-in 1s ease;
    position: relative; /* Ensure it stays above the background */
    z-index: 1;
}

.logo {
    width: 90%; /* Increased logo size */
    margin-bottom: 30px;
    animation: bounce 2s infinite ease-in-out;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    max-width: 400px; /* Wider input fields */
    padding: 16px 24px; /* Increased padding for larger inputs */
    font-size: 18px; /* Larger font size */
    border: 2px solid #189DD8;
    border-radius: 30px;
    background: #f9f9f9;
    color: #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #FFCC00; /* Lighter orange on focus */
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.input-group span {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #000000;
}

.btn {
    display: inline-block;
    width: 220px; /* Button width */
    padding: 12px 28px; /* Padding */
    border: none;
    border-radius: 30px; /* Sleek rounded corners */
    background: #FFCC00; /* Lighter Neon Orange */
    color: white;
    font-size: 18px; /* Larger font size */
    font-weight: 700; /* Bold font weight for better visibility */
    margin-top: 5px;
    text-transform: uppercase; /* Uppercase text for emphasis */
    letter-spacing: 1px; /* Spacing between letters */
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 0 8px #FFCC00; /* Reduced glow effect */
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtle text shadow to enhance visibility */
}

.btn:hover {
    background: #FFDD33; /* Lighter orange on hover */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 0 15px #FFCC00; /* Reduced glow on hover */
    transform: translateY(-3px); /* Slight hover movement */
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.6); /* Subtle focus glow */
}

.btn-back {
  display: inline-block;    /* matches .btn */
  text-decoration: none;    /* remove underline if any */
  margin-top: 15px;          /* small gap under the Login button */
}

.rain-image {
    position: absolute;
    width: 90px; /* Size of the falling image */
    height: auto;
    pointer-events: none;
    z-index: -1; /* Behind other content */
    animation: fall-and-rotate linear infinite; /* Single animation */
}

@keyframes fall-and-rotate {
    from {
        transform: translateY(-200px) rotate(0deg); /* Start above the screen */
        opacity: 1; /* Fully visible at the start */
    }
    70% {
        opacity: 1; /* Remain fully visible for most of the fall */
    }
    to {
        transform: translateY(110vh) rotate(360deg); /* End below the screen */
        opacity: 0.5; /* Slightly visible before disappearing */
    }
}

.alert {
    font-size: 14px;
    color: #b22222;
    background: #fddede;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: fade-in 0.5s ease;
}

.alert i {
    margin-right: 5px;
}
