@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800;900&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito Sans', sans-serif; /* Updated font-family */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #49a09d, #5f2c82, #d4b483, #a29bfe);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    z-index: 1;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-box {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 400px;
    width: 100%;
    z-index: 2;
    animation: slide-in 1s ease-out;
}

@keyframes slide-in {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.avatar {
    font-size: 80px;
    color: #5f2c82;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h2 {
    margin-bottom: 10px;
    color: #333333;
    font-size: 24px;
    animation: fade-in 2s ease-in;
    font-family: 'Nunito Sans', sans-serif; /* Apply font to heading */
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

p {
    margin-bottom: 30px;
    color: #777777;
    font-family: 'Nunito Sans', sans-serif; /* Apply font to paragraph */
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #5f2c82;
}

.input-group input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border-radius: 5px;
    border: 1px solid #dddddd;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: 'Nunito Sans', sans-serif; /* Apply font to inputs */
}

.input-group input:focus {
    border-color: #5f2c82;
    outline: none;
}

.btn {
    background-color: #5f2c82;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    transition: background-color 0.3s;
    margin-top: 20px;
    animation: btn-hover 2s infinite alternate;
    font-family: 'Nunito Sans', sans-serif; /* Apply font to button */
}

.btn:hover {
    background-color: #49a09d;
}

@keyframes btn-hover {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}
