<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Auth Forms with Modern Style and Hidden Hamburger</title>
    <style>
        /* Reset and Base Styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f0f4f8;
            color: #333;
            overflow-x: hidden;
        }

        /* Hamburger Menu Styles */
        .hamburger {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 35px;
            height: 30px;
            cursor: pointer;
            z-index: 110;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        .hamburger span {
            display: block;
            width: 100%;
            height: 4px;
            background-color: #00bcd4;
            border-radius: 2px;
            transition: all 0.4s ease;
        }
        .hamburger.active {
            transform: rotate(45deg);
        }
        .hamburger.active span:nth-child(1) {
            transform: rotate(0) translate(0, 13px);
        }
        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }
        .hamburger.active span:nth-child(3) {
            transform: rotate(90deg) translate(-13px, 0);
        }
        .hamburger.hidden {
            opacity: 0;
            pointer-events: none;
        }

        /* Menu Styles */
        .menu {
            position: fixed;
            top: 0;
            right: -280px;
            width: 280px;
            height: 100vh;
            background-color: #ffffff;
            box-shadow: -2px 0 5px rgba(0,0,0,0.1);
            transition: right 0.4s ease;
            padding-top: 80px;
            border-left: 2px solid #00bcd4;
            z-index: 100;
        }
        .menu.active {
            right: 0;
        }
        .menu ul {
            list-style: none;
        }
        .menu ul li {
            padding: 15px 25px;
            border-bottom: 1px solid #f0f4f8;
        }
        .menu ul li a, .menu ul li button {
            color: #00bcd4;
            text-decoration: none;
            font-size: 18px;
            background: none;
            border: none;
            cursor: pointer;
            width: 100%;
            text-align: left;
            transition: background-color 0.3s ease;
            padding: 10px 15px;
            border-radius: 4px;
        }
        .menu ul li a:hover, .menu ul li button:hover {
            background-color: #e0f7fa;
        }

        /* Form Overlay Styles */
        .auth-form, .reg-form {
            position: fixed;
            top: 0;
            right: -280px;
            width: 280px;
            height: 100vh;
            background-color: #ffffff;
            box-shadow: -2px 0 5px rgba(0,0,0,0.1);
            transition: right 0.4s ease;
            padding-top: 80px;
            z-index: 105;
        }
        .auth-form.active, .reg-form.active {
            right: 0;
        }

        /* Close Button Styles */
        .close {
            position: absolute;
            top: 25px;
            right: 25px;
            font-size: 28px;
            color: #00bcd4;
            cursor: pointer;
            transition: color 0.3s ease;
        }
        .close:hover {
            color: #007c91;
        }

        /* Form Styles */
        form {
            display: flex;
            flex-direction: column;
            padding: 20px 30px;
            animation: slideIn 0.5s ease forwards;
        }
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        h2 {
            margin-bottom: 20px;
            color: #00bcd4;
            text-align: center;
        }
        input {
            padding: 12px 15px;
            margin-bottom: 15px;
            border: 1px solid #ccd1d9;
            border-radius: 25px;
            font-size: 16px;
            transition: border 0.3s ease;
        }
        input:focus {
            border-color: #00bcd4;
            outline: none;
            box-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
        }
        button[type="submit"] {
            padding: 12px 15px;
            background-color: #00bcd4;
            color: #ffffff;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }
        button[type="submit"]:hover {
            background-color: #00a6c2;
            transform: translateY(-2px);
        }

        /* Media Queries for Responsiveness */
        @media (max-width: 500px) {
            .menu, .auth-form, .reg-form {
                width: 100%;
            }
            .hamburger {
                top: 15px;
                right: 15px;
            }
        }
    </style>
</head>
<body>
    <!-- Hamburger Icon -->
    <div class="hamburger">
        <span></span>
        <span></span>
        <span></span>
    </div>

    <!-- Sidebar Menu -->
    <nav class="menu">
        <ul>
            <li><a href="#">Home</a></li>
            <li><a href="#">About</a></li>
            <li><a href="#">Services</a></li>
            <li><a href="#">Contact</a></li>
            <li><button id="auth-btn">Authorization</button></li>
            <li><button id="reg-btn">Registration</button></li>
        </ul>
    </nav>

    <!-- Authorization Form -->
    <div class="auth-form">
        <span class="close">&times;</span>
        <form>
            <h2>Log In</h2>
            <input type="email" placeholder="Email" required>
            <input type="password" placeholder="Password" required>
            <button type="submit">Log In</button>
        </form>
    </div>

    <!-- Registration Form -->
    <div class="reg-form">
        <span class="close">&times;</span>
        <form>
            <h2>Register</h2>
            <input type="text" placeholder="Name" required>
            <input type="email" placeholder="Email" required>
            <input type="password" placeholder="Password" required>
            <input type="password" placeholder="Confirm Password" required>
            <button type="submit">Register</button>
        </form>
    </div>

    <!-- JavaScript for Interactivity -->
    <script>
        const hamburger = document.querySelector('.hamburger');
        const menu = document.querySelector('.menu');
        const authForm = document.querySelector('.auth-form');
        const regForm = document.querySelector('.reg-form');
        const authBtn = document.getElementById('auth-btn');
        const regBtn = document.getElementById('reg-btn');
        const closeBtns = document.querySelectorAll('.close');

        // Function to close all forms
        function closeAllForms() {
            authForm.classList.remove('active');
            regForm.classList.remove('active');
            menu.classList.add('active');
            hamburger.classList.remove('hidden');
        }

        // Function to open the sidebar menu
        function openMenu() {
            menu.classList.add('active');
            hamburger.classList.add('active');
        }

        // Function to close the sidebar menu
        function closeMenu() {
            menu.classList.remove('active');
            hamburger.classList.remove('active');
        }

        // Function to open a specific form
        function openForm(form) {
            closeAllForms();
            menu.classList.remove('active');
            form.classList.add('active');
            hamburger.classList.add('hidden');
        }

        // Toggle sidebar menu on hamburger click
        hamburger.addEventListener('click', () => {
            hamburger.classList.toggle('active');
            if (authForm.classList.contains('active') || regForm.classList.contains('active')) {
                closeAllForms();
            } else {
                menu.classList.toggle('active');
            }
        });

        // Open Authorization Form
        authBtn.addEventListener('click', () => openForm(authForm));

        // Open Registration Form
        regBtn.addEventListener('click', () => openForm(regForm));

        // Close forms when close button is clicked
        closeBtns.forEach(btn => {
            btn.addEventListener('click', (e) => {
                e.target.closest('.auth-form, .reg-form').classList.remove('active');
                menu.classList.add('active');
                hamburger.classList.remove('hidden');
            });
        });

        // Optional: Close the menu if clicking outside of it
        document.addEventListener('click', (e) => {
            if (!menu.contains(e.target) && !hamburger.contains(e.target) && 
                !authForm.contains(e.target) && !regForm.contains(e.target)) {
                closeMenu();
                closeAllForms();
            }
        });
    </script>
</body>
</html> CREATE A FULL WEBSITE BY ADDING A NEW FEATURES TO MY CODE