/* Resetting margins and padding for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic styling for the body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fa;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body covers full viewport height */
}

/* Styling for the slider */
.slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Ensure full viewport width */
    height: 100vh; /* Ensure full viewport height */
    z-index: -1; /* Behind other content */
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Adding transparency layer over each slide */
.slide:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Adjust the transparency level */
    z-index: 1; /* Ensure this layer is above the image */
}

/* Navbar styling */
.navbar {
    background-color: rgba(19, 20, 20, 0.8);
    padding: 10px 20px;
    color: #fff;
    position: fixed; /* Fixed header */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    max-height: 50px; /* Set the maximum height of the logo */
}

.navbar-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-menu li {
    margin-left: 20px; /* Add space between menu items */
}

.navbar-menu li:first-child {
    margin-left: 0; /* Remove space for the first item */
}

.navbar-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px; /* Add padding around text */
    display: block;
}

.navbar-menu li a.active {
    font-weight: bold;
}

/* Login container and box styling */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    margin-top: 60px; /* Adjust to height of header */
    margin-bottom: 70px; /* Adjust to height of footer */
    overflow: auto; /* Allow scrolling if content overflows */
}

.login-box {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* Ensure box does not exceed this width */
    text-align: center;
}

.login-box h2 {
    margin-bottom: 20px;
    color: #6a6aff;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.input-group input[type="checkbox"] {
    margin-right: 10px;
}

.login-btn, .register-btn, .back-btn {
    background-color: #6a6aff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
}

.register-btn {
    background-color: #4CAF50; /* Green background for registration */
}

.back-btn {
    background-color: #f44336; /* Red background for back button */
}

.login-btn {
    background-color: #2196F3; /* Blue background for login */
}

.login-btn:hover, .register-btn:hover, .back-btn:hover {
    opacity: 0.8;
}

.info {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 15px;
    background-color: rgba(19, 20, 20, 0.8);
    position: fixed; /* Fix footer to the bottom */
    width: 100%;
    bottom: 0;
    left: 0;
    color: white; /* Set text color to white */
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-menu li {
        margin: 0;
        text-align: center;
    }

    .navbar-menu.show {
        display: flex;
    }

    /* Make the login box fit smaller screens */
    .login-box {
        width: 90%; /* Use 90% of the viewport width */
        max-width: 350px; /* Ensure the max width is less on smaller screens */
    }

    .login-container {
        min-height: 60vh; /* Adjust the container height */
    }
}

@media (orientation: landscape) {
    /* Adjust layout for landscape orientation */
    .login-container {
        min-height: calc(100vh - 130px); /* Height minus header and footer */
        overflow-y: auto; /* Allow vertical scrolling if content overflows */
        padding: 15px;
    }

    .navbar-menu {
        flex-direction: row; /* Change navbar menu direction for landscape */
    }

    .button-container {
        flex-direction: row; /* Adjust button layout for landscape */
    }

    .login-box {
        width: 80%; /* Use 80% of the viewport width */
        max-width: 500px; /* Ensure the max width is larger for landscape */
    }
}

/* Flexbox layout for buttons */
.button-container {
    display: flex;
    justify-content: space-between; /* Space between buttons */
    margin-top: 10px;
}

.button-container button {
    flex: 1;
    margin: 0 5px; /* Space between buttons */
}
