/* Global styles */
:root {
    --primary-color: #3B82F6;
    /* Vibrant blue */
    --secondary-color: #374151;
    /* Cool slate gray */
    --hover-color: #60A5FA;
    /* Soft sky blue */
    --accent-color: #FF6347;
    /* Tomato */
    --light-gray: #FAFAFA;
    /* Very light gray */
    --white: #ffffff;
    /* White */
    --muted-gray: #6B7280;
    /* Muted gray */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--light-gray);
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: var(--white);
    background-color: var(--secondary-color);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Ensure smooth transitions */


}

.nav-menu li {
    display: inline;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding: 8px 16px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    color: var(--hover-color);
}

.signup a {
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
}

.signup a:hover {
    background-color: transparent;
    color: #FFDAB9;
    /* Light peach on hover */
}

main {
    padding: 20px;
    max-width: 600px;
    margin: 30px auto;
}

form {
    background-color: #FFDAB9;
    /* Light Peach */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    box-sizing: border-box;
}

.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-addon {
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: calc(100% - 40px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.input-addon i {
    position: absolute;
    left: 10px;
    font-size: 24px;
    color: var(--muted-gray);
}

.input-addon input {
    padding-left: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: var(--muted-gray);
}

button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #1E90FF;
    /* Dodger blue on hover */
}

button:focus, 
.nav-menu a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    transform: scale(1.05); /* Slightly enlarge on hover */
}


p {
    text-align: center;
}

p a {
    color: var(--primary-color);
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: var(--secondary-color);
    color: var(--muted-gray);
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0.5rem 0;
}

.social-media {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-media a {
    color: var(--hover-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.social-media a:hover {
    text-decoration: underline;
}

/* Navigation Toggle for Small Screens */
.nav-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}


/* Responsive design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 40%; /* Full width */
        height: 100vh; /* Full height */
        background-color: white;
        z-index: 120; /* Ensure it is below the toggle */
        padding-top: 90px; /* Space for header */
        opacity: 1; /* Always visible when active */
        transform: translateX(-100%); /* Initially off-screen */
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-menu a {
        color: #374151; /* Set to white explicitly */
    }

    .nav-menu.active {
        transform: translateX(0);
        display: flex;
    }

    .nav-menu li {
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle:before {
        content: "\2630";
        /* Hamburger icon */
    }

    .nav-toggle.active:before {
        content: "\2715";
        /* Close icon */
    }
        
footer {
    padding: 15px 10px;
}

footer p {
    font-size: 0.9rem; /* Slightly smaller text for mobile */
}

.social-media {
    gap: 10px; /* Reduce gap between icons for smaller screens */
}

.social-media a {
    font-size: 1rem; /* Adjust icon size for mobile */
}
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        width: 100%;
    }

    .nav-toggle {
        font-size: 1.2em;
    }
     
    footer p {
        font-size: 0.8rem; /* Further decrease text size for very small screens */
    }

    .social-media a {
        font-size: 0.9rem; /* Icon size adjustment for extra small screens */
    }
}
