.floating-form {
    display: none;
    position: absolute;
    top: 80px; /* Position below navigation header (70px + 10px margin) */
    left: 10px;
    background: white;
    padding: 10px;
    z-index: 1001; /* Higher than navigation header */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#loginForm {
    display: none; /* Hide the login form initially to prevent flash */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#loginForm input[type="email"],
#loginForm input[type="password"] {
    width: 300px;
    height: 30px;
    font-size: 16px;
    padding: 8px;
    margin-bottom: 10px;
}

#cancelButton,
#submitButton,
#loginButton {
    background-color: #1483f1;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
}

.large-input {
    width: 250px;
    height: 20px;
    font-size: 14px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

select.large-input {
    width: 270px;
}

input:invalid {
    border: 1px solid #ff6b6b;
}

/* Additional styles for improved form */
.form-group {
    margin-bottom: 15px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.coordinates-display {
    background-color: #f5f5f5;
    padding: 8px;
    border-radius: 4px;
    margin-top: 15px;
}

#coordinates-display {
    display: flex;
    justify-content: space-between;
}

.small-button {
    font-size: 12px;
    padding: 3px 8px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
}

.small-button:hover {
    background-color: #e0e0e0;
}
