*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    font-family: 'Times New Roman', serif;
    background-color: #e8f5e9; /* Light green background */
    color: #2e7d32; /* Dark green text */
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    color: #2e7d32;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #2e7d32;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: #1b5e20;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #1b5e20;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-links a:hover {
    color: #1b5e20;
    transform: translateY(-3px);
}

.login-section {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    z-index: 10;
}

.login-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.login-section h2 {
    color: #2e7d32;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.login-section:hover h2 {
    color: #1b5e20;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #2e7d32;
    outline: none;
}

.form-group button {
    width: 100%;
    padding: 12px;
    background-color: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.form-group button:hover {
    background-color: #1b5e20;
    transform: scale(1.05);
}

.form-group p {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.form-group a {
    color: #2e7d32;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-group a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

.footer {
    background-color: #2e7d32;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    transition: background 0.3s ease;
}

.footer:hover {
    background-color: #1b5e20;
}

.bottom-right-image {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 500px;
    height: auto;
    z-index: 0;
}

.bottom-right-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 16px;
    }

    .login-section {
        padding: 20px;
        width: 90%;
    }

    .login-section h2 {
        font-size: 1.5rem;
    }

    .bottom-right-image {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .login-section {
        padding: 15px;
        width: 100%;
    }

    .login-section h2 {
        font-size: 1.2rem;
    }

    .bottom-right-image {
        width: 200px;
    }
}
