/* styles/login.css */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

#openLoginBtn {
    padding: 8px 16px; /* Adjusted padding for a smaller button */
    font-size: 14px; /* Reduced font size */
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

.popup {
    display: none; /* Hide popup by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #b0bec5;
    padding: 20px; /* Reduced padding for less space around the content */
    border: 1px solid #888;
    width: 90%;
    max-width: 400px; /* Reduced max-width for a more compact design */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    box-sizing: border-box; /* Ensure padding does not affect overall width */
    margin-left: auto; /* Center the popup-content */
    margin-right: auto; /* Center the popup-content */
}

.closeBtn {
    color: black;
    float: right;
    font-size: 20px; /* Reduced font size for the close button */
    font-weight: bold;
    cursor: pointer;
}

.closeBtn:hover,
.closeBtn:focus {
    color: black;
    text-decoration: none;
}

h2 {
    margin-top: 0;
    font-size: 18px; /* Reduced font size for the heading */
}

form {
    display: flex;
    flex-direction: column;
    margin: 0; /* Reset margin to ensure proper alignment */
}

.name-container,
.address-container {
    display: flex; /* Arrange child elements in a row */
    gap: 8px; /* Reduced space between fields */
    margin-bottom: 8px; /* Reduced space below the container */
}

.name-field,
.address-field {
    flex: 1; /* Allow fields to grow equally */
}

label {
    margin-top: 5px; /* Reduced margin on top of labels */
    font-size: 14px;
}

input {
    padding: 6px; /* Further reduced padding inside input fields */
    margin-top: 3px; /* Reduced margin on top of input fields */
    margin-bottom: 6px; /* Further reduced margin below input fields */
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: calc(100% - 12px); /* Adjust width to account for reduced padding */
}

button[type="submit"],
button[type="button"] {
    padding: 6px 12px; /* Further reduced padding for buttons */
    background-color: #203d5e;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px; /* Further reduced font size for buttons */
    margin: 4px 0; /* Reduced margin around buttons */
    width: calc(70% - 12px); /* Adjust width to account for reduced padding */
    margin-left: 55px;
    text-decoration: none;
    text-underline: none;
}

button[type="submit"]:hover,
button[type="button"]:hover {
    background-color: #007bff;
}
