/* Ensure consistent scrollbar display */
html {
    overflow-y: scroll;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* General styles for the auth pages */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    background-color: #2b2b2b;
    color: #e0e0e0;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background-color: #383838;
    width: 100%;
    max-width: 100%; /* Ensure the header doesn't exceed the viewport width */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-title {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

header img.site-logo {
    max-width: 120px;
    height: auto;
    margin-right: 10px;
}

header h1 {
    margin: 0;
    font-size: 20px;
    color: #ff9800;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.nav-links button {
    background-color: #03a9f4;
    border: none;
    color: white;
    padding: 3px 10px;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    margin: 2px;
    cursor: pointer;
    border-radius: 4px;
    width: 100px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.auth-container {
    background-color: #383838;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure it spans the full width */
    max-width: 400px;
    margin-top: 20px; /* Default margin for desktop */
    box-sizing: border-box;
}

.auth-container h2 {
    text-align: center;
    color: #ff9800;
}

.auth-container form {
    display: flex;
    flex-direction: column;
}

.auth-container label {
    margin: 10px 0 5px;
}

.auth-container .form-control {
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.auth-container .form-control:focus {
    outline: none;
    box-shadow: 0 0 5px #03a9f4;
}

.auth-container .btn {
    background-color: #03a9f4;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.auth-container .btn:hover {
    background-color: #0288d1;
}

.auth-container p {
    text-align: center;
    margin-top: 10px;
}

.auth-container a {
    color: #03a9f4;
    text-decoration: none;
}

.auth-container a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    header {
        padding: 5px 10px;
    }
    .logo-title {
        padding: 0 10px;
    }
    .nav-links button {
        margin: 5px 2px;
        padding: 3px 10px;
    }
    .auth-container {
        width: 100%;
        margin-top: 50px; /* Adjust margin for mobile view */
    }
}

/* Adjust for smaller screens */
@media (max-width: 480px) {
    header h1 {
        font-size: 18px;
    }
    .nav-links button {
        font-size: 10px;
        width: auto;
        padding: 3px 8px;
    }
    .auth-container {
        padding: 15px;
    }
    .auth-container .form-control {
        font-size: 12px;
        padding: 8px;
    }
    .auth-container .btn {
        font-size: 14px;
        padding: 8px;
    }
}
